From f7c31fea62f864f08160bcd6d051136f4b951f86 Mon Sep 17 00:00:00 2001 From: vsr Date: Mon, 28 Feb 2005 12:19:50 +0000 Subject: [PATCH] PAL8026 --- src/SALOMEGUI/QAD_Desktop.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/SALOMEGUI/QAD_Desktop.cxx b/src/SALOMEGUI/QAD_Desktop.cxx index 5fa319a28..1f15d0236 100644 --- a/src/SALOMEGUI/QAD_Desktop.cxx +++ b/src/SALOMEGUI/QAD_Desktop.cxx @@ -3062,6 +3062,7 @@ 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 @@ -3075,10 +3076,12 @@ void QAD_Desktop::onComboActiveComponent( const QString & component, bool isLoad // QApplication::setOverrideCursor( Qt::waitCursor ); bool isOk = ( !isLoadData || loadComponentData( getComponentName(component) ) ); if ( !isOk ) { + wc.stop(); QAD_MessageBox::error1( this, tr("ERR_ERROR"), tr("ERR_COMP_DATA_NOT_LOADED").arg( component ), tr("BUT_OK") ); + wc.start(); } if ( !isOk || !loadComponent( getComponentName(component) ) ) { -- 2.39.2