History

more work on improving shutdown behavior

ZappoMan committed 11 years ago

Commit 6be8f4c1 parent 7e2d3554 files · +85 −11Browse files

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

Unified · Split

interface/src/Application.cpp+9−2
@@ -3538,7 +3538,7 @@ void Application::registerScriptEngineWithApplicationServices(ScriptEngine* scri · 3537 unmodified lines
35383538 connect(workerThread, SIGNAL(finished()), workerThread, SLOT(deleteLater()));
35393539
35403540 // when the application is about to quit, stop our script engine so it unwinds properly
3541− connect(this, SIGNAL(aboutToQuit()), scriptEngine, SLOT(stop()));
3541+ //connect(this, SIGNAL(aboutToQuit()), scriptEngine, SLOT(stop()));
35423542
35433543 auto nodeList = DependencyManager::get<NodeList>();
35443544 connect(nodeList.data(), &NodeList::nodeKilled, scriptEngine, &ScriptEngine::nodeKilled);
@@ -3550,7 +3550,14 @@ void Application::registerScriptEngineWithApplicationServices(ScriptEngine* scri · 5 unmodified lines
35503550 }
35513551
35523552 ScriptEngine* Application::loadScript(const QString& scriptFilename, bool isUserLoaded,
3553− bool loadScriptFromEditor, bool activateMainWindow) {
3553+ bool loadScriptFromEditor, bool activateMainWindow) {
3554+
3555+ qDebug() << "Application::loadScript() " << scriptFilename << "line:" << __LINE__;
3556+ if (isAboutToQuit()) {
3557+ qDebug() << "Application::loadScript() WHILE QUITTING.... what to do????" << scriptFilename << "line:" << __LINE__;
3558+ return NULL;
3559+ }
3560+
35543561 QUrl scriptUrl(scriptFilename);
35553562 const QString& scriptURLString = scriptUrl.toString();
35563563 if (_scriptEnginesHash.contains(scriptURLString) && loadScriptFromEditor

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