From 4842c9279b5e413ded8e7788c6ae026bb04ddfb7 Mon Sep 17 00:00:00 2001 From: vsv Date: Thu, 7 Dec 2017 17:31:17 +0300 Subject: [PATCH] Issue #2324: Update all indexes on show/hide --- src/XGUI/XGUI_Workshop.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) 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(); } //************************************************************** -- 2.39.2