summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/mail/mainwindow.cpp6
-rw-r--r--noncore/net/mail/mainwindow.h1
2 files changed, 2 insertions, 5 deletions
diff --git a/noncore/net/mail/mainwindow.cpp b/noncore/net/mail/mainwindow.cpp
index c410829..2b5870a 100644
--- a/noncore/net/mail/mainwindow.cpp
+++ b/noncore/net/mail/mainwindow.cpp
@@ -161,4 +161,2 @@ void MainWindow::displayMail(QListViewItem*item)
- m_currentItem = item;
-
if (!item) return;
@@ -182,4 +180,4 @@ void MainWindow::slotDeleteMail()
{
- if (!m_currentItem) return;
- RecMail mail = ((MailListViewItem*)m_currentItem)->data();
+ if (!mailView->currentItem()) return;
+ RecMail mail = ((MailListViewItem*)mailView->currentItem() )->data();
mail.Wrapper()->deleteMail( mail );
diff --git a/noncore/net/mail/mainwindow.h b/noncore/net/mail/mainwindow.h
index 8641510..21af190 100644
--- a/noncore/net/mail/mainwindow.h
+++ b/noncore/net/mail/mainwindow.h
@@ -39,3 +39,2 @@ protected:
QListView *mailView;
- QListViewItem* m_currentItem;
QBoxLayout *layout;