From 217adf72bd5c1efbd9228fcbab264f205fc3b97f Mon Sep 17 00:00:00 2001 From: vsv Date: Wed, 6 Dec 2017 16:42:43 +0300 Subject: [PATCH] Issue #2324: Update object browser after hide all on Linux --- src/XGUI/XGUI_Workshop.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) 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") { -- 2.39.2