From: jfa Date: Fri, 18 Nov 2022 10:19:37 +0000 (+0300) Subject: [bos #29098] Remove useless code staying after previous fix. X-Git-Tag: V9_10_0b1^0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=41a5eae59322772fc2cb230fad140dea9c51973c;p=modules%2Fshaper.git [bos #29098] Remove useless code staying after previous fix. --- diff --git a/src/SHAPERGUI/SHAPERGUI.cpp b/src/SHAPERGUI/SHAPERGUI.cpp index acc61de03..90261d4c9 100644 --- a/src/SHAPERGUI/SHAPERGUI.cpp +++ b/src/SHAPERGUI/SHAPERGUI.cpp @@ -330,8 +330,6 @@ bool SHAPERGUI::activateModule(SUIT_Study* theStudy) else myWorkshop->updateCommandStatus(); } - SUIT_ResourceMgr* aResMgr = application()->resourceMgr(); - myIsStorePositions = aResMgr->booleanValue("Study", "store_positions", true); myIsEditEnabled = getApp()->isEditEnabled(); getApp()->setEditEnabled(false); @@ -463,8 +461,6 @@ bool SHAPERGUI::deactivateModule(SUIT_Study* theStudy) //myWorkshop->contextMenuMgr()->disconnectViewer(); - SUIT_ResourceMgr* aResMgr = application()->resourceMgr(); - aResMgr->setValue("Study", "store_positions", myIsStorePositions); getApp()->setEditEnabled(myIsEditEnabled); myOldSelectionColor.clear(); diff --git a/src/SHAPERGUI/SHAPERGUI.h b/src/SHAPERGUI/SHAPERGUI.h index 1135d894e..964d4bfe0 100644 --- a/src/SHAPERGUI/SHAPERGUI.h +++ b/src/SHAPERGUI/SHAPERGUI.h @@ -276,11 +276,7 @@ private slots: /// Flag of opened document state bool myIsOpened; - // the next parameters should be restored after this module deactivation - - /// The application value of the preferences parameter - bool myIsStorePositions; - + // the next parameter should be restored after this module deactivation /// The application value bool myIsEditEnabled;