History

More invisible web entity fixes

Brad Davis committed 10 years ago

Commit bf734391 parent cc85ce91 file · +8 −1Browse files

Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all

Unified · Split

interface/src/Application.cpp+8−1
@@ -994,7 +994,7 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer) : · 993 unmodified lines
994994 if (_keyboardFocusedItem != entityItemID) {
995995 _keyboardFocusedItem = UNKNOWN_ENTITY_ID;
996996 auto properties = entityScriptingInterface->getEntityProperties(entityItemID);
997− if (EntityTypes::Web == properties.getType() && !properties.getLocked()) {
997+ if (EntityTypes::Web == properties.getType() && !properties.getLocked() && properties.getVisible()) {
998998 auto entity = entityScriptingInterface->getEntityTree()->findEntityByID(entityItemID);
999999 RenderableWebEntityItem* webEntity = dynamic_cast<RenderableWebEntityItem*>(entity.get());
10001000 if (webEntity) {
@@ -1049,6 +1049,13 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer) : · 48 unmodified lines
10491049 }
10501050 });
10511051
1052+ connect(this, &Application::aboutToQuit, [=]() {
1053+ _keyboardFocusedItem = UNKNOWN_ENTITY_ID;
1054+ if (_keyboardFocusHighlight) {
1055+ _keyboardFocusHighlight->setVisible(false);
1056+ }
1057+ });
1058+
10521059 // Make sure we don't time out during slow operations at startup
10531060 updateHeartbeat();
10541061