summaryrefslogtreecommitdiffabout
path: root/kmicromail/opiemail.cpp
Side-by-side diff
Diffstat (limited to 'kmicromail/opiemail.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--kmicromail/opiemail.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/kmicromail/opiemail.cpp b/kmicromail/opiemail.cpp
index 8d16ae7..af5376f 100644
--- a/kmicromail/opiemail.cpp
+++ b/kmicromail/opiemail.cpp
@@ -23,6 +23,7 @@
#include <qtimer.h>
#include <qcursor.h>
#include <qregexp.h>
+#include <qpe/global.h>
#ifdef DESKTOP_VERSION
#include <qapplication.h>
@@ -189,6 +190,8 @@ void OpieMail::slotSendQueued()
QMessageBox::information(0,i18n("Info"),i18n("Define a smtp account first!\n"));
return;
}
+ if ( QMessageBox::warning(this, i18n("Sending all mails"), i18n("Do you really want to send\nall queued mails?" ) , QMessageBox::Yes, QMessageBox::No ) == QMessageBox::No )
+ return;
if (smtpList.count()==1)
{
smtp = smtpList.at(0);
@@ -208,13 +211,16 @@ void OpieMail::slotSendQueued()
}
if (smtp)
{
+
+ Global::statusMessage("Sending mails...!");
SMTPwrapper * wrap = new SMTPwrapper(smtp);
if ( wrap->flushOutbox() )
{
- QMessageBox::information(0,i18n("Info"),i18n("Mail queue flushed"));
- }
+ Global::statusMessage("Mails sent!");
+ }
delete wrap;
}
+ // pending refresh list view, if outgoing is displayed
}
void OpieMail::slotSearchMails()
@@ -430,6 +436,7 @@ void OpieMail::refreshMailView(const QValueList<RecMailP>&list)
item->storeData((*it));
item->showEntry();
}
+ mailView->setSorting ( 4, false );
}
void OpieMail::mailLeftClicked( QListViewItem *item )