]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Fix for bug PAL6698.
authormzn <mzn@opencascade.com>
Wed, 29 Mar 2006 14:13:36 +0000 (14:13 +0000)
committermzn <mzn@opencascade.com>
Wed, 29 Mar 2006 14:13:36 +0000 (14:13 +0000)
src/SMESHGUI/SMESHGUI.cxx
src/SMESHGUI/SMESHGUI.h
src/SMESHGUI/SMESHGUI_FilterLibraryDlg.cxx

index d4ac0bd64854e014fe528be7e830c6bf5ac3633f..aeb1f53d1970283a48b3e5faf08004a6ae46eeed 100644 (file)
@@ -831,6 +831,7 @@ SalomeApp_Module( "SMESH" )
   }
 
   myActiveDialogBox = 0;
+  myFilterLibraryDlg = 0;
   myState = -1;
   myDisplayer = 0;
 
@@ -2060,7 +2061,11 @@ bool SMESHGUI::OnGUIEvent( int theCommandID )
       aTypes.append( SMESH::FACE );
       aTypes.append( SMESH::VOLUME );
     }
-    new SMESHGUI_FilterLibraryDlg( this, SMESH::GetDesktop( this ), aTypes, SMESHGUI_FilterLibraryDlg::EDIT );
+    if (!myFilterLibraryDlg)
+      myFilterLibraryDlg = new SMESHGUI_FilterLibraryDlg( this, SMESH::GetDesktop( this ), aTypes, SMESHGUI_FilterLibraryDlg::EDIT );
+    else if (myFilterLibraryDlg->isHidden())
+      myFilterLibraryDlg->show();
+    myFilterLibraryDlg->raise();
   }
   break;
 
index 9626e4358b923689573c11c2d1b541d562507609..2115e2650f617d0e04ed13b8ad39e52035eb10f7 100644 (file)
@@ -48,6 +48,8 @@ class LightApp_Operation;
 class SalomeApp_Study;
 class LightApp_SelectionMgr;
 
+class SMESHGUI_FilterLibraryDlg;
+
 
 //=================================================================================
 // class    : SMESHGUI
@@ -138,6 +140,8 @@ private :
   int                              myState;
   QMap<int,QString>                myRules;
   LightApp_Displayer*              myDisplayer;
+
+  SMESHGUI_FilterLibraryDlg*       myFilterLibraryDlg;
 };
 
 #endif
index 8c9feaee0d2ee31b480dd35258283e12ec617696..52ff8d24d344c37384d03decfc6cbac5139e7513 100644 (file)
@@ -102,7 +102,7 @@ SMESHGUI_FilterLibraryDlg::SMESHGUI_FilterLibraryDlg (SMESHGUI* theModule,
                                                       const QValueList<int>& theTypes,
                                                       const int              theMode,
                                                       const char*            theName)
-     : QDialog( parent, theName, true, WStyle_Customize |
+     : QDialog( parent, theName, false, WStyle_Customize |
                 WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu ),
      mySMESHGUI( theModule )
 {