History

fixing test code

Brad Davis committed 7 years ago

Commit 6aa967f1 parent 31340d22 files · +35 −1Browse files

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

Unified · Split

interface/src/Application.cpp+5−1
@@ -7507,7 +7507,11 @@ void Application::registerScriptEngineWithApplicationServices(const ScriptEngine · 7506 unmodified lines
75077507 if (clientScript) {
75087508 scriptEngine->registerGlobalObject("Desktop", DependencyManager::get<DesktopScriptingInterface>().data());
75097509 } else {
7510− scriptEngine->registerGlobalObject("Desktop", new DesktopScriptingInterface(scriptEngine.get(), true));
7510+ auto desktopScriptingInterface = new DesktopScriptingInterface(nullptr, true);
7511+ scriptEngine->registerGlobalObject("Desktop", desktopScriptingInterface);
7512+ if (QThread::currentThread() != thread()) {
7513+ desktopScriptingInterface->moveToThread(thread());
7514+ }
75117515 }
75127516 #endif
75137517

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t