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) (unidiff)
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 @@
5#include <qlayout.h> 5#include <qlayout.h>
6#include <qmessagebox.h>
6 7
@@ -183,2 +184,3 @@ void MainWindow::slotDeleteMail()
183 RecMail mail = ((MailListViewItem*)mailView->currentItem() )->data(); 184 RecMail mail = ((MailListViewItem*)mailView->currentItem() )->data();
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 ) {
184 mail.Wrapper()->deleteMail( mail ); 186 mail.Wrapper()->deleteMail( mail );
@@ -186,2 +188,3 @@ void MainWindow::slotDeleteMail()
186} 188}
189}
187 190
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 @@
1#include <qtextbrowser.h> 1#include <qtextbrowser.h>
2#include <qmessagebox.h> 2#include <qmessagebox.h>?
3#include <qtextstream.h> 3#include <qtextstream.h>
@@ -321,2 +321,3 @@ void ViewMail::slotDeleteMail( )
321{ 321{
322 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 ) {
322 m_recMail.Wrapper()->deleteMail( m_recMail ); 323 m_recMail.Wrapper()->deleteMail( m_recMail );
@@ -325 +326,2 @@ void ViewMail::slotDeleteMail( )
325} 326}
327}