From fbac5a187224fe482724721a3c5058ba61322d8d Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Thu, 28 Oct 2004 09:38:35 +0000 Subject: [PATCH] From KDE_3_3_BRANCH: Don't show busy cursors when dialogs pop up. svn path=/trunk/kdepim/; revision=358455 --- kmcomposewin.cpp | 1 + kmmessage.cpp | 11 +++++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/kmcomposewin.cpp b/kmcomposewin.cpp index 2a134a091..0d65f6e68 100644 --- a/kmcomposewin.cpp +++ b/kmcomposewin.cpp @@ -2202,6 +2202,7 @@ void KMComposeWin::slotAttachFileResult(KIO::Job *job) // make it visible in the config file: composer.writeEntry("showMessagePartDialogOnAttach", false); if (composer.readBoolEntry("showMessagePartDialogOnAttach", false)) { + const KCursorSaver saver( QCursor::ArrowCursor ); KMMsgPartDialogCompat dlg; int encodings = 0; for ( QValueListConstIterator it = allowedCTEs.begin() ; diff --git a/kmmessage.cpp b/kmmessage.cpp index 138358f01..77b8345f7 100644 --- a/kmmessage.cpp +++ b/kmmessage.cpp @@ -24,6 +24,7 @@ using KMail::ObjectTreeParser; #include "headerstrategy.h" using KMail::HeaderStrategy; #include "kmaddrbook.h" +#include "kcursorsaver.h" #include #include @@ -1109,10 +1110,12 @@ KMMessage* KMMessage::createBounce( bool ) if (senderStr.isEmpty()) { #if ALLOW_GUI - if ( withUI ) + if ( withUI ) { + const KCursorSaver saver( QCursor::ArrowCursor ); KMessageBox::sorry(0 /*app-global modal*/, i18n("The message has no sender set"), i18n("Bounce Message")); + } #endif return 0; } @@ -1128,7 +1131,8 @@ KMMessage* KMMessage::createBounce( bool ) else receiver = KPIM::getEmailAddr(to()); #if ALLOW_GUI - if ( withUI ) + if ( withUI ) { + const KCursorSaver saver( QCursor::ArrowCursor ); // No composer appears. So better ask before sending. if (KMessageBox::warningContinueCancel(0 /*app-global modal*/, i18n("Return the message to the sender as undeliverable?\n" @@ -1140,6 +1144,7 @@ KMMessage* KMMessage::createBounce( bool ) { return 0; } + } #endif KMMessage *msg = new KMMessage; @@ -1299,12 +1304,14 @@ static int requestAdviceOnMDN( const char * what ) { for ( int i = 0 ; i < numMdnMessageBoxes ; ++i ) if ( !qstrcmp( what, mdnMessageBoxes[i].dontAskAgainID ) ) if ( mdnMessageBoxes[i].canDeny ) { + const KCursorSaver saver( QCursor::ArrowCursor ); int answer = QMessageBox::information( 0, i18n("Message Disposition Notification Request"), i18n( mdnMessageBoxes[i].text ), i18n("&Ignore"), i18n("Send \"&denied\""), i18n("&Send") ); return answer ? answer + 1 : 0 ; // map to "mode" in createMDN } else { + const KCursorSaver saver( QCursor::ArrowCursor ); int answer = QMessageBox::information( 0, i18n("Message Disposition Notification Request"), i18n( mdnMessageBoxes[i].text ),