]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #2324: Update object browser after hide all on Linux
authorvsv <vsv@opencascade.com>
Wed, 6 Dec 2017 13:42:43 +0000 (16:42 +0300)
committervsv <vsv@opencascade.com>
Wed, 6 Dec 2017 13:42:43 +0000 (16:42 +0300)
src/XGUI/XGUI_Workshop.cpp

index 032790dcb845354c4a731744e462be306064bb4d..de866856ddeaec1e17c6b98c9961a8f6661b6585 100755 (executable)
@@ -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") {