Salome HOME
New item (FontItem), allowing to show information about font setting and to select...
[modules/gui.git] / src / SUIT / SUIT_ViewWindow.cxx
index f7060156b509d637099dd12d86f1d28069f7adeb..7886b415bfbb19adff3cec5d40e9d812be3d9d6f 100755 (executable)
@@ -62,7 +62,7 @@ bool SUIT_ViewWindow::event( QEvent* e )
       if ( !img.isNull() ) {
         // get file name
         QString fileName = myManager->study()->application()->getFileName( false, QString::null, tr( "TLT_IMAGE_FILES" ), tr( "TLT_DUMP_VIEW" ), 0 );
-        if ( fileName ) {
+        if ( !fileName.isEmpty() ) {
           QString fmt = SUIT_Tools::extension( fileName ).upper();
           if ( fmt.isEmpty() ) fmt = QString( "BMP" ); // default format
          if ( fmt == "JPG" )  fmt = "JPEG";