From e5e00a95875951c51f875e73aefd3a556a6b121e Mon Sep 17 00:00:00 2001 From: apo Date: Mon, 12 Dec 2005 12:57:30 +0000 Subject: [PATCH] Minor changes --- src/VISUGUI/VisuGUI.cxx | 3 ++- src/VISUGUI/VisuGUI_Prs3dTools.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/VISUGUI/VisuGUI.cxx b/src/VISUGUI/VisuGUI.cxx index fab7a980..2f4191ef 100644 --- a/src/VISUGUI/VisuGUI.cxx +++ b/src/VISUGUI/VisuGUI.cxx @@ -421,7 +421,8 @@ CreateCurves( SalomeApp_Module* theModule, if ( aTblObj ) { _PTR(GenericAttribute) anAttr; if (aTblObj->FindAttribute( anAttr, "AttributeName" ) ) { - aBuilder->RemoveObjectWithChildren( aIter->Value() ); // We should have only one child + aBuilder->RemoveObjectWithChildren( aTblObj ); // We should have only one child + UpdateObjBrowser(theModule,true,aTblObj); break; } } diff --git a/src/VISUGUI/VisuGUI_Prs3dTools.h b/src/VISUGUI/VisuGUI_Prs3dTools.h index 1d255f22..9af013e1 100644 --- a/src/VISUGUI/VisuGUI_Prs3dTools.h +++ b/src/VISUGUI/VisuGUI_Prs3dTools.h @@ -163,6 +163,7 @@ namespace VISU dynamic_cast( aPrs3d ), aDlg, true ); // in creation mode + UpdateObjBrowser(theModule,true,theTimeStamp); QApplication::restoreOverrideCursor(); delete aDlg; } else { @@ -200,7 +201,6 @@ namespace VISU return; theModule->application()->putInfo(QObject::tr("INF_DONE")); - UpdateObjBrowser(theModule,true,aTimeStampSObj); typedef typename TViewer::TViewWindow TView; if(TView* aView = GetViewWindow(theModule,theIsCreateView)) -- 2.39.2