author | harlekin <harlekin> | 2003-12-14 00:55:16 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2003-12-14 00:55:16 (UTC) |
commit | 9a0f1ee9b3ba465942d207eaddec722371f86353 (patch) (side-by-side diff) | |
tree | 0dabc3598a8516a58a6b5e01019e22062af2b6de | |
parent | ff2b84787e454f8a11aaef7a4ce18941ac0d28fd (diff) | |
download | opie-9a0f1ee9b3ba465942d207eaddec722371f86353.zip opie-9a0f1ee9b3ba465942d207eaddec722371f86353.tar.gz opie-9a0f1ee9b3ba465942d207eaddec722371f86353.tar.bz2 |
little fix
-rw-r--r-- | noncore/net/mail/mainwindow.cpp | 6 | ||||
-rw-r--r-- | noncore/net/mail/mainwindow.h | 1 |
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 @@ -160,6 +160,4 @@ void MainWindow::displayMail(QListViewItem*item) { - m_currentItem = item; - if (!item) return; RecMail mail = ((MailListViewItem*)item)->data(); @@ -181,6 +179,6 @@ void MainWindow::displayMail(QListViewItem*item) 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 ); folderView->refreshCurrent(); 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 @@ -38,5 +38,4 @@ protected: AccountView *folderView; QListView *mailView; - QListViewItem* m_currentItem; QBoxLayout *layout; }; |