From: vsv Date: Wed, 6 Dec 2017 14:55:03 +0000 (+0300) Subject: Issue #2328: Update all items in ObjectBrowser on ShowOnly command X-Git-Tag: V_2.10.0RC~94 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fe7d50e816b6126b96466512fb49cfa1811b5555;p=modules%2Fshaper.git Issue #2328: Update all items in ObjectBrowser on ShowOnly command --- diff --git a/src/XGUI/XGUI_Workshop.cpp b/src/XGUI/XGUI_Workshop.cpp index 91d8757f2..cb0f7a099 100755 --- a/src/XGUI/XGUI_Workshop.cpp +++ b/src/XGUI/XGUI_Workshop.cpp @@ -1472,10 +1472,8 @@ void XGUI_Workshop::onContextMenuCommand(const QString& theId, bool isChecked) viewer()->eraseAll(); #endif updateCommandStatus(); -#ifndef WIN32 - // Necessary for update icons in ObjectBrowser on Linux - myObjectBrowser->updateAllIndexes(); -#endif + // Necessary for update icons in ObjectBrowser on Linux + myObjectBrowser->updateAllIndexes(); } else if (theId == "SELECT_VERTEX_CMD") { setViewerSelectionMode(TopAbs_VERTEX); } else if (theId == "SELECT_EDGE_CMD") { @@ -2396,15 +2394,9 @@ void XGUI_Workshop::showOnlyObjects(const QObjectPtrList& theList) aObj->setDisplayed(true); } Events_Loop::loop()->flush(Events_Loop::eventByName(EVENT_OBJECT_TO_REDISPLAY)); -#ifndef WIN32 + // Necessary for update icons in ObjectBrowser on Linux - QModelIndexList aIndexes = mySelector->selection()->selectedIndexes(); - foreach (QModelIndex aIdx, aIndexes) { - if (aIdx.column() == 0) { - myObjectBrowser->treeView()->update(aIdx); - } - } -#endif + myObjectBrowser->updateAllIndexes(); } //**************************************************************