From kde-commits Thu Oct 28 09:38:35 2004 From: Marc Mutz Date: Thu, 28 Oct 2004 09:38:35 +0000 To: kde-commits Subject: kdepim/kmail Message-Id: <20041028093835.883F616CC4 () office ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=109895632310465 CVS commit by mutz: From KDE_3_3_BRANCH: Don't show busy cursors when dialogs pop up. M +1 -0 kmcomposewin.cpp 1.876 M +9 -2 kmmessage.cpp 1.494 --- kdepim/kmail/kmcomposewin.cpp #1.875:1.876 @@ -2203,4 +2203,5 @@ void KMComposeWin::slotAttachFileResult( composer.writeEntry("showMessagePartDialogOnAttach", false); if (composer.readBoolEntry("showMessagePartDialogOnAttach", false)) { + const KCursorSaver saver( QCursor::ArrowCursor ); KMMsgPartDialogCompat dlg; int encodings = 0; --- kdepim/kmail/kmmessage.cpp #1.493:1.494 @@ -25,4 +25,5 @@ using KMail::ObjectTreeParser; using KMail::HeaderStrategy; #include "kmaddrbook.h" +#include "kcursorsaver.h" #include @@ -1110,8 +1111,10 @@ KMMessage* KMMessage::createBounce( bool { #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; @@ -1129,5 +1132,6 @@ KMMessage* KMMessage::createBounce( bool #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*/, @@ -1141,4 +1145,5 @@ KMMessage* KMMessage::createBounce( bool return 0; } + } #endif @@ -1300,4 +1305,5 @@ static int requestAdviceOnMDN( const cha 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"), @@ -1306,4 +1312,5 @@ static int requestAdviceOnMDN( const cha 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"),