]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #2862: Reset state of visibility if it was unsynchronized.
authorvsv <vsv@opencascade.com>
Fri, 15 Feb 2019 10:25:46 +0000 (13:25 +0300)
committervsv <vsv@opencascade.com>
Fri, 15 Feb 2019 10:25:46 +0000 (13:25 +0300)
src/XGUI/XGUI_ObjectsBrowser.cpp

index 1862244a5c0a463866ca13a9a063089d063c399f..37f2fe0c559e37c0734c2f619f6825d14c220d6f 100644 (file)
@@ -244,8 +244,11 @@ void XGUI_DataTree::processEyeClick(const QModelIndex& theIndex)
       bool hasHiddenState = aModel->hasHiddenState(theIndex);
       if (aObjBrowser && hasHiddenState && !aObjBrowser->workshop()->prepareForDisplay(anObjects))
         return;
-      if (hasHiddenState) // #issue 2335(hide all faces then show solid problem)
+      if (hasHiddenState) { // #issue 2335(hide all faces then show solid problem)
+        if (aResObj->isDisplayed())
+          aResObj->setDisplayed(false);
         aResObj->setDisplayed(true);
+      }
       else
         aResObj->setDisplayed(!aResObj->isDisplayed());
       Events_Loop::loop()->flush(Events_Loop::eventByName(EVENT_OBJECT_TO_REDISPLAY));