summaryrefslogtreecommitdiff
authorharlekin <harlekin>2003-12-14 00:55:16 (UTC)
committer harlekin <harlekin>2003-12-14 00:55:16 (UTC)
commit9a0f1ee9b3ba465942d207eaddec722371f86353 (patch) (unidiff)
tree0dabc3598a8516a58a6b5e01019e22062af2b6de
parentff2b84787e454f8a11aaef7a4ce18941ac0d28fd (diff)
downloadopie-9a0f1ee9b3ba465942d207eaddec722371f86353.zip
opie-9a0f1ee9b3ba465942d207eaddec722371f86353.tar.gz
opie-9a0f1ee9b3ba465942d207eaddec722371f86353.tar.bz2
little fix
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
@@ -160,6 +160,4 @@ void MainWindow::displayMail(QListViewItem*item)
160{ 160{
161 161
162 m_currentItem = item;
163
164 if (!item) return; 162 if (!item) return;
165 RecMail mail = ((MailListViewItem*)item)->data(); 163 RecMail mail = ((MailListViewItem*)item)->data();
@@ -181,6 +179,6 @@ void MainWindow::displayMail(QListViewItem*item)
181void MainWindow::slotDeleteMail() 179void MainWindow::slotDeleteMail()
182{ 180{
183 if (!m_currentItem) return; 181 if (!mailView->currentItem()) return;
184 RecMail mail = ((MailListViewItem*)m_currentItem)->data(); 182 RecMail mail = ((MailListViewItem*)mailView->currentItem() )->data();
185 mail.Wrapper()->deleteMail( mail ); 183 mail.Wrapper()->deleteMail( mail );
186 folderView->refreshCurrent(); 184 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:
38 AccountView *folderView; 38 AccountView *folderView;
39 QListView *mailView; 39 QListView *mailView;
40 QListViewItem* m_currentItem;
41 QBoxLayout *layout; 40 QBoxLayout *layout;
42}; 41};