]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #2324: Update all indexes on show/hide
authorvsv <vsv@opencascade.com>
Thu, 7 Dec 2017 14:31:17 +0000 (17:31 +0300)
committervsv <vsv@opencascade.com>
Thu, 7 Dec 2017 14:31:17 +0000 (17:31 +0300)
src/XGUI/XGUI_Workshop.cpp

index e4fc24368d2ab890d8cb274497b87a3de308ff78..d93b451c6d47512d9191adcb9e3150b69a0f49de 100755 (executable)
@@ -2363,15 +2363,7 @@ void XGUI_Workshop::showObjects(const QObjectPtrList& theList, bool isVisible)
     aObj->setDisplayed(isVisible);
   }
   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();
 }
 
 //**************************************************************