]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Additional corrections
authorimn <imn@opencascade.com>
Fri, 20 Nov 2015 11:50:33 +0000 (14:50 +0300)
committerimn <imn@opencascade.com>
Fri, 20 Nov 2015 11:50:33 +0000 (14:50 +0300)
src/PyViewer/PyViewer_ViewWindow.cxx

index 8a674c3e5d0ec962266eed0170377b4451592481..47a9a4582c4d26d3d74ba8bd33b60871fa9efdf6 100644 (file)
@@ -38,6 +38,7 @@
 #include <QFileDialog>
 #include <QMessageBox>
 #include <QApplication>
+#include <QStatusBar>
 
 /*!
   \class PyViewer_ViewWindow
@@ -72,7 +73,7 @@ void PyViewer_ViewWindow::initLayout()
       connect( my_TextEditor->document(), SIGNAL( modificationChanged( bool ) ),
               this, SLOT( setWindowModified( bool ) ) );
       
-      //statusBar()->showMessage( tr("STS_READY") );
+      statusBar()->showMessage( tr("STS_READY") );
     }  
 }
 
@@ -451,8 +452,8 @@ void PyViewer_ViewWindow::loadFile( const QString &theFilePath )
 
   setCurrentFile( theFilePath );
   aFile.close();
-  /*if ( isExternal() )
-    statusBar()->showMessage( tr( "STS_F_LOADED" ), 2000 ); */
+  if ( isExternal() )
+    statusBar()->showMessage( tr( "STS_F_LOADED" ), 2000 );
 }
 
 /*!
@@ -477,8 +478,8 @@ bool PyViewer_ViewWindow::saveFile( const QString &theFilePath )
   setCurrentFile( theFilePath );
   aFile.close();
 
-  /*if ( isExternal() )
-    statusBar()->showMessage( tr( "STS_F_SAVED" ), 2000 ); */
+  if ( isExternal() )
+    statusBar()->showMessage( tr( "STS_F_SAVED" ), 2000 );
 
   return true;
 }