Fix for bug PAL6698.

This commit is contained in:
mzn 2006-03-29 14:13:36 +00:00
parent 7327fd50ad
commit 447b12a82d
3 changed files with 11 additions and 2 deletions

View 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;

View 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

View 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 )
{