History

Fix up script editor's "reload script?" message box

David Rowe committed 10 years ago

Commit ab963b41 parent f75aa972 files · +3 −3Browse files

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

Unified · Split

interface/src/ui/ScriptEditorWidget.cpp+2−2
@@ -226,8 +226,8 @@ void ScriptEditorWidget::onWindowActivated() { · 225 unmodified lines
226226
227227 if (QFileInfo(_currentScript).lastModified() > _currentScriptModified) {
228228 if (static_cast<ScriptEditorWindow*>(this->parent()->parent()->parent())->autoReloadScripts()
229− || OffscreenUi::warning(this, _currentScript,
230− tr("This file has been modified outside of the Interface editor.") + "\n\n"
229+ || OffscreenUi::question(this, tr("Reload Script"),
230+ tr("The following file has been modified outside of the Interface editor:") + "\n" + _currentScript + "\n"
231231 + (isModified()
232232 ? tr("Do you want to reload it and lose the changes you've made in the Interface editor?")
233233 : tr("Do you want to reload it?")),