summaryrefslogtreecommitdiff
path: root/noncore
authorharlekin <harlekin>2003-12-14 02:03:25 (UTC)
committer harlekin <harlekin>2003-12-14 02:03:25 (UTC)
commit568f23df5f4d5b1835c3b89ad54eeb6fc53157e6 (patch) (side-by-side diff)
tree944c4745d4cdb642e873e480b45479d5116ea33a /noncore
parent154e03927d2b97f3f76f807fe104ac9d74035215 (diff)
downloadopie-568f23df5f4d5b1835c3b89ad54eeb6fc53157e6.zip
opie-568f23df5f4d5b1835c3b89ad54eeb6fc53157e6.tar.gz
opie-568f23df5f4d5b1835c3b89ad54eeb6fc53157e6.tar.bz2
check back before deleting a mail
Diffstat (limited to 'noncore') (more/less context) (show whitespace changes)
-rw-r--r--noncore/net/mail/mainwindow.cpp3
-rw-r--r--noncore/net/mail/viewmail.cpp4
2 files changed, 6 insertions, 1 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,2 +184,3 @@ void MainWindow::slotDeleteMail()
RecMail mail = ((MailListViewItem*)mailView->currentItem() )->data();
+ 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 );
@@ -186,2 +188,3 @@ void MainWindow::slotDeleteMail()
}
+}
diff --git a/noncore/net/mail/viewmail.cpp b/noncore/net/mail/viewmail.cpp
index 163ffb7..2415c82 100644
--- a/noncore/net/mail/viewmail.cpp
+++ b/noncore/net/mail/viewmail.cpp
@@ -1,3 +1,3 @@
#include <qtextbrowser.h>
-#include <qmessagebox.h>
+#include <qmessagebox.h>?
#include <qtextstream.h>
@@ -321,2 +321,3 @@ void ViewMail::slotDeleteMail( )
{
+ if ( QMessageBox::warning(this, tr("Delete Mail"), QString( tr("<p>Do you really want to delete this mail? <br><br>" ) + m_mail[0] + " - " + m_mail[1] ) , QMessageBox::Yes, QMessageBox::No ) == QMessageBox::Yes ) {
m_recMail.Wrapper()->deleteMail( m_recMail );
@@ -325 +326,2 @@ void ViewMail::slotDeleteMail( )
}
+}