author | alwin <alwin> | 2003-12-28 17:50:33 (UTC) |
---|---|---|
committer | alwin <alwin> | 2003-12-28 17:50:33 (UTC) |
commit | 0f6e3b4aa6faeb48df9e595fb2f50e78333d64d7 (patch) (unidiff) | |
tree | fee79098277e76942485646d766b21c93ccbc599 /noncore/net/mail/accountview.cpp | |
parent | 696a2dcfcb65fbb24b709bbae0a18a7854e2d72c (diff) | |
download | opie-0f6e3b4aa6faeb48df9e595fb2f50e78333d64d7.zip opie-0f6e3b4aa6faeb48df9e595fb2f50e78333d64d7.tar.gz opie-0f6e3b4aa6faeb48df9e595fb2f50e78333d64d7.tar.bz2 |
fix for compiling with arm gcc 2.95.3 (next time I'll check before commit)
Diffstat (limited to 'noncore/net/mail/accountview.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/accountview.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/noncore/net/mail/accountview.cpp b/noncore/net/mail/accountview.cpp index f861c20..9f07f56 100644 --- a/noncore/net/mail/accountview.cpp +++ b/noncore/net/mail/accountview.cpp | |||
@@ -386,27 +386,29 @@ void IMAPfolderItem::contextMenuSelected(int id) | |||
386 | } | 386 | } |
387 | } | 387 | } |
388 | 388 | ||
389 | /** | 389 | /** |
390 | * Generic stuff | 390 | * Generic stuff |
391 | */ | 391 | */ |
392 | 392 | ||
393 | const QString AccountViewItem::contextName="AccountViewItem"; | 393 | const QString AccountViewItem::contextName="AccountViewItem"; |
394 | 394 | ||
395 | void AccountViewItem::deleteAllMail(AbstractMail*wrapper,Folder*folder) | 395 | void AccountViewItem::deleteAllMail(AbstractMail*wrapper,Folder*folder) |
396 | { | 396 | { |
397 | if (!wrapper) return; | 397 | if (!wrapper) return; |
398 | QString fname=""; | ||
399 | if (folder) fname = folder->getDisplayName(); | ||
398 | int yesno = QMessageBox::warning(0,QObject::tr("Delete all mails",contextName), | 400 | int yesno = QMessageBox::warning(0,QObject::tr("Delete all mails",contextName), |
399 | QObject::tr("<center>Realy delete all mails in box <br>%1</center>",contextName). | 401 | QObject::tr("<center>Realy delete all mails in box <br>%1</center>",contextName). |
400 | arg((folder?folder->getDisplayName():"")), | 402 | arg(fname), |
401 | QObject::tr("Yes",contextName), | 403 | QObject::tr("Yes",contextName), |
402 | QObject::tr("No",contextName),QString::null,1,1); | 404 | QObject::tr("No",contextName),QString::null,1,1); |
403 | qDebug("Auswahl: %i",yesno); | 405 | qDebug("Auswahl: %i",yesno); |
404 | if (yesno == 0) { | 406 | if (yesno == 0) { |
405 | if (wrapper->deleteAllMail(folder)) { | 407 | if (wrapper->deleteAllMail(folder)) { |
406 | AccountView * view = (AccountView*)listView(); | 408 | AccountView * view = (AccountView*)listView(); |
407 | if (view) view->refreshCurrent(); | 409 | if (view) view->refreshCurrent(); |
408 | } | 410 | } |
409 | } | 411 | } |
410 | } | 412 | } |
411 | 413 | ||
412 | AccountView::AccountView( QWidget *parent, const char *name, WFlags flags ) | 414 | AccountView::AccountView( QWidget *parent, const char *name, WFlags flags ) |