From 36bcaa8d0fdbca70e91566484f3c73e2145dafae Mon Sep 17 00:00:00 2001 From: Seth Alves Date: Sat, 25 Feb 2017 08:43:06 -0800 Subject: [PATCH] delete tablet overlays when switching domains --- interface/src/Application.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index bff2a6bae0..09bb6946a4 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -783,6 +783,11 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo connect(&domainHandler, SIGNAL(connectedToDomain(const QString&)), SLOT(updateWindowTitle())); connect(&domainHandler, SIGNAL(disconnectedFromDomain()), SLOT(updateWindowTitle())); connect(&domainHandler, SIGNAL(disconnectedFromDomain()), SLOT(clearDomainOctreeDetails())); + connect(&domainHandler, &DomainHandler::disconnectedFromDomain, this, [this]() { + getOverlays().deleteOverlay(getTabletScreenID()); + getOverlays().deleteOverlay(getTabletHomeButtonID()); + getOverlays().deleteOverlay(getTabletFrameID()); + }); connect(&domainHandler, &DomainHandler::domainConnectionRefused, this, &Application::domainConnectionRefused); // We could clear ATP assets only when changing domains, but it's possible that the domain you are connected