From: ana Date: Wed, 20 May 2015 10:22:35 +0000 (+0300) Subject: Fix for "0052732: OCC viewer is not switched back to 3D mode after closing Create... X-Git-Tag: V7_6_0rc1~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=38f42c5163a99bdc2c4307556ddef1872e21ce3a;p=modules%2Fgeom.git Fix for "0052732: OCC viewer is not switched back to 3D mode after closing Create Polyline dialog box" issue --- diff --git a/src/EntityGUI/EntityGUI_PolylineDlg.cxx b/src/EntityGUI/EntityGUI_PolylineDlg.cxx index 7f8a52283..ed2f4ee36 100644 --- a/src/EntityGUI/EntityGUI_PolylineDlg.cxx +++ b/src/EntityGUI/EntityGUI_PolylineDlg.cxx @@ -162,6 +162,7 @@ EntityGUI_PolylineDlg::EntityGUI_PolylineDlg EntityGUI_PolylineDlg::~EntityGUI_PolylineDlg() { erasePreview(); + myEditorWidget->SetViewer2DMode(false); } //================================================================================= @@ -381,16 +382,6 @@ bool EntityGUI_PolylineDlg::ClickOnApply() return true; } -//================================================================================= -// function : ClickOnCancel() -// purpose : -//================================================================================= -void EntityGUI_PolylineDlg::ClickOnCancel() -{ - myEditorWidget->SetViewer2DMode(false); - GEOMBase_Skeleton::ClickOnCancel(); -} - //================================================================================= // function : processStartedSubOperation // purpose : diff --git a/src/EntityGUI/EntityGUI_PolylineDlg.h b/src/EntityGUI/EntityGUI_PolylineDlg.h index 53ff8dfc9..3172a040b 100644 --- a/src/EntityGUI/EntityGUI_PolylineDlg.h +++ b/src/EntityGUI/EntityGUI_PolylineDlg.h @@ -152,7 +152,6 @@ protected slots: void ClickOnOk(); bool ClickOnApply(); - void ClickOnCancel(); void processStartedSubOperation( QWidget*, bool ); void processFinishedSubOperation( QWidget* ); void SetEditCurrentArgument( bool );