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
59 QUrl url(urlString);59 QUrl url(urlString);
60 emit svoImportRequested(url.url());60 emit svoImportRequested(url.url());
61 } else {61 } 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.");
63 }63 }
64 });64 });
65 65
@@ -103,7 +103,7 @@ void WindowScriptingInterface::raiseMainWindow() { · 37 unmodified lines
103/// \param const QString& message message to display103/// \param const QString& message message to display
104/// \return QScriptValue::UndefinedValue104/// \return QScriptValue::UndefinedValue
105void WindowScriptingInterface::alert(const QString& message) {105void WindowScriptingInterface::alert(const QString& message) {
106 OffscreenUi::warning("", message);106 OffscreenUi::asyncWarning("", message);
107}107}
108 108
109/// Display a confirmation box with the options 'Yes' and 'No'109/// Display a confirmation box with the options 'Yes' and 'No'