Showing the changes to interface/src/scripting/WindowScriptingInterface.cpp (1 of 2 files). Show all
Unified · Split
| @@ -49,6 +49,8 @@ void CustomPromptResultFromScriptValue(const QScriptValue& object, CustomPromptR · 48 unmodified lines | ||
| 49 | 49 | WindowScriptingInterface::WindowScriptingInterface() { |
| 50 | 50 | const DomainHandler& domainHandler = DependencyManager::get<NodeList>()->getDomainHandler(); |
| 51 | 51 | connect(&domainHandler, &DomainHandler::connectedToDomain, this, &WindowScriptingInterface::domainChanged); |
| 52 | + connect(&domainHandler, &DomainHandler::disconnectedFromDomain, this, &WindowScriptingInterface::disconnectedFromDomain); | |
| 53 | + | |
| 52 | 54 | connect(&domainHandler, &DomainHandler::domainConnectionRefused, this, &WindowScriptingInterface::domainConnectionRefused); |
| 53 | 55 | |
| 54 | 56 | connect(qApp, &Application::svoImportRequested, [this](const QString& urlString) { |
| @@ -134,6 +136,10 @@ void WindowScriptingInterface::promptAsync(const QString& message, const QString · 79 unmodified lines | ||
| 134 | 136 | }); |
| 135 | 137 | } |
| 136 | 138 | |
| 139 | +void WindowScriptingInterface::disconnectedFromDomain() { | |
| 140 | + emit domainChanged(""); | |
| 141 | +} | |
| 142 | + | |
| 137 | 143 | CustomPromptResult WindowScriptingInterface::customPrompt(const QVariant& config) { |
| 138 | 144 | CustomPromptResult result; |
| 139 | 145 | bool ok = false; |