]> 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 09:36:54 +0000 (12:36 +0300)
committernds <nds@opencascade.com>
Thu, 17 Sep 2015 09:37:18 +0000 (12:37 +0300)
An attempt to delete widgets.

src/ModuleBase/ModuleBase_PageBase.cpp
src/XGUI/XGUI_PropertyPanel.cpp

index f7057783e2633f072be18742f01f11fdd0b6f77f..ed9fb7694031d374eb4120e8ee216a60a9afe5bd 100644 (file)
@@ -40,10 +40,12 @@ void ModuleBase_PageBase::addPageWidget(ModuleBase_PageBase* thePage)
 
 void ModuleBase_PageBase::clearPage()
 {
+  myWidgetList.clear();
+
   QLayoutItem *aChild;
   while ((aChild = pageLayout()->takeAt(0)) != 0) {
     if(aChild->widget()) {
-      aChild->widget()->deleteLater();
+      delete aChild->widget();
     } else {
       delete aChild;
     }
@@ -62,7 +64,6 @@ void ModuleBase_PageBase::clearPage()
     for( int i=0; i<r; i++ )
       aLayout->setRowStretch( i, 0 );
   }
-  myWidgetList.clear();
 }
 
 
index 1b5a64aa5e651810cadfaca4cbecf2e7c768b565..89b9461f51556a3e303bef2c6d36b7b6013b36ec 100644 (file)
@@ -96,8 +96,6 @@ void XGUI_PropertyPanel::cleanContent()
     QWidget* aWidget = *anIt;
     if (aWidget) {
       aWidget->blockSignals(true);
-      aWidget->setParent(0);
-      aWidget->deleteLater();
     }
   }