From: vsv Date: Thu, 25 Jul 2019 14:23:09 +0000 (+0300) Subject: Fix non synchronous show/hide color scale with step object display X-Git-Tag: VEDF2019Lot4~91 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=055b47e7a1e52ad569e419ffec5bbc9233e53d87;p=modules%2Fshaper.git Fix non synchronous show/hide color scale with step object display --- diff --git a/src/XGUI/XGUI_ObjectsBrowser.cpp b/src/XGUI/XGUI_ObjectsBrowser.cpp index a83a67251..df92b7e2a 100644 --- a/src/XGUI/XGUI_ObjectsBrowser.cpp +++ b/src/XGUI/XGUI_ObjectsBrowser.cpp @@ -251,11 +251,11 @@ void XGUI_DataTree::processEyeClick(const QModelIndex& theIndex) // Update list of selected objects because this event happens after // selection event in object browser + Events_Loop::loop()->flush(Events_Loop::eventByName(EVENT_OBJECT_TO_REDISPLAY)); + update(theIndex); if (aObjBrowser) { aObjBrowser->onSelectionChanged(); } - Events_Loop::loop()->flush(Events_Loop::eventByName(EVENT_OBJECT_TO_REDISPLAY)); - update(theIndex); } }