]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #924 Fatal error as result of ExtrusionCut call
authornds <nds@opencascade.com>
Thu, 17 Sep 2015 06:12:41 +0000 (09:12 +0300)
committernds <nds@opencascade.com>
Thu, 17 Sep 2015 06:13:04 +0000 (09:13 +0300)
An attempt to delete widgets.

src/XGUI/XGUI_PropertyPanel.cpp

index d4bb4370bc3464d7d3b4650a7ac9a92163cd75c5..1b5a64aa5e651810cadfaca4cbecf2e7c768b565 100644 (file)
@@ -94,8 +94,11 @@ void XGUI_PropertyPanel::cleanContent()
                                                  aLast = myWidgets.end();
   for (; anIt != aLast; anIt++) {
     QWidget* aWidget = *anIt;
-    if (aWidget)
+    if (aWidget) {
       aWidget->blockSignals(true);
+      aWidget->setParent(0);
+      aWidget->deleteLater();
+    }
   }
 
   myWidgets.clear();