Salome HOME
IPAL9620: SIGSEGV on attempt to set properties of Cut Planes during animation setup
[modules/visu.git] / src / VISUGUI / VisuGUI_CutLinesDlg.cxx
index 8bb166b64b0cfc33261c4613644355d3465bbe13..6e3d7246605a09a44a30a9a29f7306c6d4abe73e 100644 (file)
@@ -43,18 +43,13 @@ using namespace std;
 bool VisuGUI_CutLinesDlg::MYGenerateTable = true;
 bool VisuGUI_CutLinesDlg::MYGenerateCurve = true;
 
-VisuGUI_CutLinesDlg::VisuGUI_CutLinesDlg (SalomeApp_Module* theModule,
-                                          bool theIsCreation, bool theIsModal)
-     : QDialog(VISU::GetDesktop(theModule), "VisuGUI_CutLinesDlg", theIsModal,
+VisuGUI_CutLinesDlg::VisuGUI_CutLinesDlg (SalomeApp_Module* theModule)
+     : QDialog(VISU::GetDesktop(theModule), "VisuGUI_CutLinesDlg", true,
                WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu),
        myPreviewActor(0)
 {
-  if (!theIsModal) {
-    setWFlags(getWFlags() | WDestructiveClose);
-  }
   setCaption("Cut Lines Definition");
   setSizeGripEnabled(true);
-  myIsCreation = theIsCreation;
 
   QVBoxLayout* aMainLayout = new QVBoxLayout (this, 7, 6);
   aMainLayout->setSpacing(5);