Diffstat (limited to 'noncore/net/mail/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/mainwindow.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/noncore/net/mail/mainwindow.cpp b/noncore/net/mail/mainwindow.cpp index 391b55e..e466d9b 100644 --- a/noncore/net/mail/mainwindow.cpp +++ b/noncore/net/mail/mainwindow.cpp | |||
@@ -4,4 +4,5 @@ | |||
4 | #include <qtimer.h> | 4 | #include <qtimer.h> |
5 | #include <qlayout.h> | 5 | #include <qlayout.h> |
6 | #include <qmessagebox.h> | ||
6 | 7 | ||
7 | #include <qpe/qpeapplication.h> | 8 | #include <qpe/qpeapplication.h> |
@@ -182,6 +183,8 @@ void MainWindow::slotDeleteMail() | |||
182 | if (!mailView->currentItem()) return; | 183 | if (!mailView->currentItem()) return; |
183 | RecMail mail = ((MailListViewItem*)mailView->currentItem() )->data(); | 184 | RecMail mail = ((MailListViewItem*)mailView->currentItem() )->data(); |
184 | mail.Wrapper()->deleteMail( mail ); | 185 | if ( QMessageBox::warning(this, tr("Delete Mail"), QString( tr("<p>Do you really want to delete this mail? <br><br>" ) + mail.getFrom() + " - " + mail.getSubject() ) , QMessageBox::Yes, QMessageBox::No ) == QMessageBox::Yes ) { |
185 | folderView->refreshCurrent(); | 186 | mail.Wrapper()->deleteMail( mail ); |
187 | folderView->refreshCurrent(); | ||
188 | } | ||
186 | } | 189 | } |
187 | 190 | ||