From: vsv Date: Wed, 6 Dec 2017 13:42:43 +0000 (+0300) Subject: Issue #2324: Update object browser after hide all on Linux X-Git-Tag: V_2.10.0RC~97 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=217adf72bd5c1efbd9228fcbab264f205fc3b97f;p=modules%2Fshaper.git Issue #2324: Update object browser after hide all on Linux --- diff --git a/src/XGUI/XGUI_Workshop.cpp b/src/XGUI/XGUI_Workshop.cpp index 032790dcb..de866856d 100755 --- a/src/XGUI/XGUI_Workshop.cpp +++ b/src/XGUI/XGUI_Workshop.cpp @@ -1472,6 +1472,15 @@ void XGUI_Workshop::onContextMenuCommand(const QString& theId, bool isChecked) viewer()->eraseAll(); #endif updateCommandStatus(); +#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 } else if (theId == "SELECT_VERTEX_CMD") { setViewerSelectionMode(TopAbs_VERTEX); } else if (theId == "SELECT_EDGE_CMD") {