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
226 226
227 if (QFileInfo(_currentScript).lastModified() > _currentScriptModified) {227 if (QFileInfo(_currentScript).lastModified() > _currentScriptModified) {
228 if (static_cast<ScriptEditorWindow*>(this->parent()->parent()->parent())->autoReloadScripts()228 if (static_cast<ScriptEditorWindow*>(this->parent()->parent()->parent())->autoReloadScripts()
229 || OffscreenUi::warning(this, _currentScript,229 || OffscreenUi::question(this, tr("Reload Script"),
230 tr("This file has been modified outside of the Interface editor.") + "\n\n"230 tr("The following file has been modified outside of the Interface editor:") + "\n" + _currentScript + "\n"
231 + (isModified()231 + (isModified()
232 ? tr("Do you want to reload it and lose the changes you've made in the Interface editor?")232 ? tr("Do you want to reload it and lose the changes you've made in the Interface editor?")
233 : tr("Do you want to reload it?")),233 : tr("Do you want to reload it?")),