From: vsv Date: Thu, 7 Dec 2017 14:31:17 +0000 (+0300) Subject: Issue #2324: Update all indexes on show/hide X-Git-Tag: V_2.10.0RC~74 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4842c9279b5e413ded8e7788c6ae026bb04ddfb7;p=modules%2Fshaper.git Issue #2324: Update all indexes on show/hide --- diff --git a/src/XGUI/XGUI_Workshop.cpp b/src/XGUI/XGUI_Workshop.cpp index e4fc24368..d93b451c6 100755 --- a/src/XGUI/XGUI_Workshop.cpp +++ b/src/XGUI/XGUI_Workshop.cpp @@ -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(); } //**************************************************************