]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
PAL8026 (fix previous integration which caused another bug)
authorvsr <vsr@opencascade.com>
Mon, 28 Feb 2005 14:59:17 +0000 (14:59 +0000)
committervsr <vsr@opencascade.com>
Mon, 28 Feb 2005 14:59:17 +0000 (14:59 +0000)
src/SALOMEGUI/QAD_Desktop.cxx

index 1f15d02364930f96ca32256587d685c8d6433f34..aaad78ca62adf9d125eb93e7a3dc8553db30a94e 100644 (file)
@@ -3062,7 +3062,6 @@ void QAD_Desktop::onComboActiveComponent( const QString & component ){
 }
 void QAD_Desktop::onComboActiveComponent( const QString & component, bool isLoadData)
 {
-  QAD_WaitCursor wc;
   if (myActiveStudy != 0) {
     if (myActiveComp.compare(component)!=0) {
       // deactivate previous component
@@ -3076,6 +3075,10 @@ void QAD_Desktop::onComboActiveComponent( const QString & component, bool isLoad
 //     QApplication::setOverrideCursor( Qt::waitCursor );
        bool isOk = ( !isLoadData || loadComponentData( getComponentName(component) ) );
        if ( !isOk ) {
+         // It is only to remove Wait cursor set outside of this method
+         // QAD_WaitCursor has recursive behaviour
+         // This is PAL8026 fix
+         QAD_WaitCursor wc;
          wc.stop();
          QAD_MessageBox::error1( this, 
                                 tr("ERR_ERROR"),