author | harlekin <harlekin> | 2003-12-14 02:03:25 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2003-12-14 02:03:25 (UTC) |
commit | 568f23df5f4d5b1835c3b89ad54eeb6fc53157e6 (patch) (side-by-side diff) | |
tree | 944c4745d4cdb642e873e480b45479d5116ea33a /noncore/net/mail/mainwindow.cpp | |
parent | 154e03927d2b97f3f76f807fe104ac9d74035215 (diff) | |
download | opie-568f23df5f4d5b1835c3b89ad54eeb6fc53157e6.zip opie-568f23df5f4d5b1835c3b89ad54eeb6fc53157e6.tar.gz opie-568f23df5f4d5b1835c3b89ad54eeb6fc53157e6.tar.bz2 |
check back before deleting a mail
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 @@ -5,2 +5,3 @@ #include <qlayout.h> +#include <qmessagebox.h> @@ -183,4 +184,6 @@ void MainWindow::slotDeleteMail() RecMail mail = ((MailListViewItem*)mailView->currentItem() )->data(); - mail.Wrapper()->deleteMail( mail ); - folderView->refreshCurrent(); + 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 ) { + mail.Wrapper()->deleteMail( mail ); + folderView->refreshCurrent(); + } } |