Salome HOME
projects
/
modules
/
hydro.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lot 15:: protection against corrupted polylines/objects
[modules/hydro.git]
/
src
/
HYDROGUI
/
HYDROGUI_BathymetrySelectionOp.cxx
diff --git
a/src/HYDROGUI/HYDROGUI_BathymetrySelectionOp.cxx
b/src/HYDROGUI/HYDROGUI_BathymetrySelectionOp.cxx
index 526c2c218cc6297754b470b4729cdd1c107afb16..dd5fb3cf0faeec51bdbb8ffbc704afde292179a3 100644
(file)
--- a/
src/HYDROGUI/HYDROGUI_BathymetrySelectionOp.cxx
+++ b/
src/HYDROGUI/HYDROGUI_BathymetrySelectionOp.cxx
@@
-26,6
+26,7
@@
#include <OCCViewer_ViewManager.h>
#include <LightApp_Application.h>
#include <QAction>
#include <OCCViewer_ViewManager.h>
#include <LightApp_Application.h>
#include <QAction>
+#include <QApplication>
HYDROGUI_BathymetrySelectionOp::HYDROGUI_BathymetrySelectionOp( HYDROGUI_Module* theModule )
: HYDROGUI_Operation( theModule ), myIsActive( false )
HYDROGUI_BathymetrySelectionOp::HYDROGUI_BathymetrySelectionOp( HYDROGUI_Module* theModule )
: HYDROGUI_Operation( theModule ), myIsActive( false )
@@
-90,8
+91,9
@@
void HYDROGUI_BathymetrySelectionOp::activateSelection( bool isActive )
if( myIsActive==isActive )
return;
if( myIsActive==isActive )
return;
- getContext( module() )->ClearSelected();
-
+ getContext( module() )->ClearSelected(true);
+ qApp->setOverrideCursor( Qt::WaitCursor );
+ getContext( module() )->ClearSelected(true);
Handle(AIS_InteractiveContext) ctx = getContext( module() );
QList<Handle(HYDROGUI_BathymetryPrs)> baths = getShownBathymetries( module() );
if( isActive )
Handle(AIS_InteractiveContext) ctx = getContext( module() );
QList<Handle(HYDROGUI_BathymetryPrs)> baths = getShownBathymetries( module() );
if( isActive )
@@
-118,4
+120,6
@@
void HYDROGUI_BathymetrySelectionOp::activateSelection( bool isActive )
}
myIsActive = isActive;
}
myIsActive = isActive;
+
+ qApp->restoreOverrideCursor();
}
}