From 149b646089d7cb004d130160d6c159e0d2170c51 Mon Sep 17 00:00:00 2001 From: asl Date: Thu, 12 Oct 2017 19:14:23 +0300 Subject: [PATCH] refs #1326: debug of cursor and buttons states --- src/HYDROGUI/HYDROGUI_BathymetryOp.cxx | 5 ++++- src/HYDROGUI/HYDROGUI_BathymetrySelectionOp.cxx | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) 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 -- 2.39.2