changeset 62:0371c08590a3

[Fix] Bug ID 1657255 : When an error occurred while calling the indenter, still the busy mouse pointer was shown. Set back to normal pointer then. git-svn-id: svn://svn.code.sf.net/p/universalindent/code/trunk@219 59b1889a-e5ac-428c-b0c7-476e01d41282
author thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
date Sun, 11 Feb 2007 13:04:37 +0000
parents bb900d92d048
children aea5d4632a2f
files src/indenthandler.cpp
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/indenthandler.cpp	Sun Feb 11 13:01:37 2007 +0000
+++ b/src/indenthandler.cpp	Sun Feb 11 13:04:37 2007 +0000
@@ -160,6 +160,7 @@
 #endif
 
     if ( !wineInstalled ) {
+        QApplication::restoreOverrideCursor();
         QMessageBox::warning(NULL, tr("wine not installed"), tr("There exists only a win32 executable of the indenter and wine does not seem to be installed. Please install wine to be able to run the indenter.") );
     }
     else {
@@ -197,6 +198,7 @@
                     break;
             }
             processReturnString += tr("<b>Callstring was:</b> ") + indentCallString + "</html></body>";
+            QApplication::restoreOverrideCursor();
             QMessageBox::warning(NULL, tr("Error calling Indenter"), processReturnString);
         }
         // there was no problem starting the process/indenter so fetch, what it returned
@@ -211,6 +213,7 @@
             processReturnString = tr("<b>Indenter returned with exit code:</b> ") + exitCode + "<br>" +
                                 tr("<b>Indent console output was:</b> ") + processReturnString + "<br>" +
                                 tr("<b>Callstring was:</b> ") + indentCallString + "</html></body>";
+            QApplication::restoreOverrideCursor();
             QMessageBox::warning(NULL, tr("Indenter returned error"), processReturnString);
         }
     }