History

1st stage of moving to async dialogs

vladest committed 9 years ago

Commit 55656981 parent e0daa929 files · +248 −174Browse files

Showing the changes to interface/src/scripting/WindowScriptingInterface.cpp (1 of 9 files). Show all

Unified · Split

interface/src/scripting/WindowScriptingInterface.cpp+2−2
@@ -59,7 +59,7 @@ WindowScriptingInterface::WindowScriptingInterface() { · 58 unmodified lines
5959 QUrl url(urlString);
6060 emit svoImportRequested(url.url());
6161 } else {
62− OffscreenUi::warning("Import SVO Error", "You need to be running edit.js to import entities.");
62+ OffscreenUi::asyncWarning("Import SVO Error", "You need to be running edit.js to import entities.");
6363 }
6464 });
6565
@@ -103,7 +103,7 @@ void WindowScriptingInterface::raiseMainWindow() { · 37 unmodified lines
103103 /// \param const QString& message message to display
104104 /// \return QScriptValue::UndefinedValue
105105 void WindowScriptingInterface::alert(const QString& message) {
106− OffscreenUi::warning("", message);
106+ OffscreenUi::asyncWarning("", message);
107107 }
108108
109109 /// Display a confirmation box with the options 'Yes' and 'No'