]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Bug #481: clear status bar when deactivate HYDRO module.
authormzn <mzn@opencascade.com>
Tue, 28 Oct 2014 07:51:09 +0000 (07:51 +0000)
committermzn <mzn@opencascade.com>
Tue, 28 Oct 2014 07:51:09 +0000 (07:51 +0000)
src/HYDROGUI/HYDROGUI_Module.cxx

index 51e6c30398a76f7f635142942a946817eda3fc89..e46e0cd97f70df8f1570080c20b706df2bcf1cf1 100644 (file)
@@ -259,6 +259,12 @@ bool HYDROGUI_Module::deactivateModule( SUIT_Study* theStudy )
   myVTKPrsMap.clear();
   */
 
+  // clear the status bar
+  SUIT_Desktop* aDesktop = getApp()->desktop();
+  if ( aDesktop && aDesktop->statusBar() ) {
+    aDesktop->statusBar()->clearMessage();
+  }
+
   // clear the data model's list of copying objects
   HYDROGUI_DataModel::changeCopyingObjects( HYDROData_SequenceOfObjects() );