[Kst] extragear/graphics/kst/kst

Andrew Walker arwalker at sumusltd.com
Fri Jan 20 03:23:44 CET 2006


SVN commit 500357 by arwalker:

No longer display a KMessageBox at the same time as a wait cursor, else the user will likely wait a long time for the application to become responsive

 M  +6 -1      kstdoc.cpp  


--- trunk/extragear/graphics/kst/kst/kstdoc.cpp #500356:500357
@@ -429,7 +429,9 @@
   }
 
   if (warnOldKstFile) {
+    QApplication::restoreOverrideCursor();
     KMessageBox::sorry(KstApp::inst(), i18n("You tried to load an old Kst file.  Curves created by equations or PSDs will not be loaded."));
+    QApplication::setOverrideCursor(QCursor(Qt::WaitCursor));
   }
 
   app->slotUpdateProgress(0, 0, i18n("Creating plots"));
@@ -503,11 +505,13 @@
       names += (*i)->tagName();
     }
 
+    QApplication::restoreOverrideCursor();
 #if KDE_VERSION < KDE_MAKE_VERSION(3,3,90)
     KMessageBox::informationList(KstApp::inst(), i18n("The Kst file could not be loaded in its entirety due to missing objects or data."), names);
 #else
     KMessageBox::errorList(KstApp::inst(), i18n("The Kst file could not be loaded in its entirety due to missing objects or data."), names);
 #endif
+    QApplication::setOverrideCursor(QCursor(Qt::WaitCursor));
   }
 
   createScalars();
@@ -535,7 +539,8 @@
   opening = false;
 
   KstApp::inst()->setPaused(false);
-    QApplication::restoreOverrideCursor();
+  QApplication::restoreOverrideCursor();
+  
   return true;
 }
 


More information about the Kst mailing list