From: asl Date: Thu, 12 Oct 2017 16:14:23 +0000 (+0300) Subject: refs #1326: debug of cursor and buttons states X-Git-Tag: v2.1~67^2~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=149b646089d7cb004d130160d6c159e0d2170c51;p=modules%2Fhydro.git refs #1326: debug of cursor and buttons states --- diff --git a/src/HYDROGUI/HYDROGUI_BathymetryOp.cxx b/src/HYDROGUI/HYDROGUI_BathymetryOp.cxx index b1672a28..68178b58 100644 --- a/src/HYDROGUI/HYDROGUI_BathymetryOp.cxx +++ b/src/HYDROGUI/HYDROGUI_BathymetryOp.cxx @@ -131,7 +131,8 @@ void HYDROGUI_BathymetryOp::activate( bool isActivate ) QList baths = getShownBathymetries( module() ); bool isUpdateCS = false; - qApp->setOverrideCursor( Qt::WaitCursor ); + if( myMode!=BathymetryRescaleUserId ) + qApp->setOverrideCursor( Qt::WaitCursor ); switch( myMode ) { @@ -186,6 +187,8 @@ void HYDROGUI_BathymetryOp::activate( bool isActivate ) dlg.SetMinMax( min, max ); if( dlg.exec()==QDialog::Accepted ) { + qApp->setOverrideCursor( Qt::WaitCursor ); + min = dlg.GetMin(); max = dlg.GetMax(); foreach( Handle(HYDROGUI_BathymetryPrs) bath, baths ) diff --git a/src/HYDROGUI/HYDROGUI_BathymetrySelectionOp.cxx b/src/HYDROGUI/HYDROGUI_BathymetrySelectionOp.cxx index 9786506d..8c843cd2 100644 --- a/src/HYDROGUI/HYDROGUI_BathymetrySelectionOp.cxx +++ b/src/HYDROGUI/HYDROGUI_BathymetrySelectionOp.cxx @@ -46,6 +46,7 @@ void HYDROGUI_BathymetrySelectionOp::abortOperation() activateSelection( false ); module()->action( BathymetrySelectionId )->setChecked( false ); + module()->action( BathymetryTextId )->setChecked( false ); } bool HYDROGUI_BathymetrySelectionOp::isValid( SUIT_Operation* theOtherOp ) const