History

Merge branch 'tablet-ui-edit-js' of github.com:sethalves/hifi into menuFix

Dante Ruiz committed 9 years ago

Commit 19110ec2 parents 73c337e 34c5d4818 files · +314 −52Browse files

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

Unified · Split

interface/src/Application.cpp+7−0
@@ -783,6 +783,11 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo · 782 unmodified lines
783783 connect(&domainHandler, SIGNAL(connectedToDomain(const QString&)), SLOT(updateWindowTitle()));
784784 connect(&domainHandler, SIGNAL(disconnectedFromDomain()), SLOT(updateWindowTitle()));
785785 connect(&domainHandler, SIGNAL(disconnectedFromDomain()), SLOT(clearDomainOctreeDetails()));
786+ connect(&domainHandler, &DomainHandler::disconnectedFromDomain, this, [this]() {
787+ getOverlays().deleteOverlay(getTabletScreenID());
788+ getOverlays().deleteOverlay(getTabletHomeButtonID());
789+ getOverlays().deleteOverlay(getTabletFrameID());
790+ });
786791 connect(&domainHandler, &DomainHandler::domainConnectionRefused, this, &Application::domainConnectionRefused);
787792
788793 // We could clear ATP assets only when changing domains, but it's possible that the domain you are connected
@@ -1221,6 +1226,8 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo · 432 unmodified lines
12211226 if (entity && entity->wantsKeyboardFocus()) {
12221227 setKeyboardFocusOverlay(UNKNOWN_OVERLAY_ID);
12231228 setKeyboardFocusEntity(entityItemID);
1229+ } else {
1230+ setKeyboardFocusEntity(UNKNOWN_ENTITY_ID);
12241231 }
12251232 });
12261233