Diffstat (limited to 'noncore/net/mail/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/mainwindow.cpp | 6 |
1 files changed, 2 insertions, 4 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 | |||
@@ -159,8 +159,6 @@ void MainWindow::refreshMailView(QList<RecMail>*list) | |||
159 | void MainWindow::displayMail(QListViewItem*item) | 159 | 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(); |
166 | RecBody body = folderView->fetchBody(mail); | 164 | RecBody body = folderView->fetchBody(mail); |
@@ -180,8 +178,8 @@ void MainWindow::displayMail(QListViewItem*item) | |||
180 | 178 | ||
181 | void MainWindow::slotDeleteMail() | 179 | void 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(); |
187 | } | 185 | } |