From 3320af5e47cdb4b54c4185c91d0332c013d90818 Mon Sep 17 00:00:00 2001 From: zautrix Date: Mon, 01 Nov 2004 14:15:56 +0000 Subject: ompi fixes --- (limited to 'kmicromail/opiemail.cpp') 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 #include #include +#include #ifdef DESKTOP_VERSION #include @@ -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&list) item->storeData((*it)); item->showEntry(); } + mailView->setSorting ( 4, false ); } void OpieMail::mailLeftClicked( QListViewItem *item ) -- cgit v0.9.0.2