From: mzn Date: Tue, 28 Oct 2014 07:51:09 +0000 (+0000) Subject: Bug #481: clear status bar when deactivate HYDRO module. X-Git-Tag: BR_hydro_v_1_0_4~10 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=aba4698b8c55b90a7121060f99ecf7b27b5e1c9b;p=modules%2Fhydro.git Bug #481: clear status bar when deactivate HYDRO module. --- diff --git a/src/HYDROGUI/HYDROGUI_Module.cxx b/src/HYDROGUI/HYDROGUI_Module.cxx index 51e6c303..e46e0cd9 100644 --- a/src/HYDROGUI/HYDROGUI_Module.cxx +++ b/src/HYDROGUI/HYDROGUI_Module.cxx @@ -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() );