From aba4698b8c55b90a7121060f99ecf7b27b5e1c9b Mon Sep 17 00:00:00 2001 From: mzn Date: Tue, 28 Oct 2014 07:51:09 +0000 Subject: [PATCH] Bug #481: clear status bar when deactivate HYDRO module. --- src/HYDROGUI/HYDROGUI_Module.cxx | 6 ++++++ 1 file changed, 6 insertions(+) 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() ); -- 2.39.2