diff options
author | Juan Linietsky <reduzio@gmail.com> | 2015-03-22 15:05:47 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2015-03-22 15:05:47 -0300 |
commit | f706e3e5d1d93c5666a1edabec1aeee318996d6f (patch) | |
tree | 6cd00dbb9dcec62343f224fe6a5ae5899232975d /tools/editor/plugins | |
parent | 0302ea5b821939c68529195d223c35bc7f3ce7b1 (diff) | |
parent | c0efa3fb5b8c545c34859cc722c3c8a2ada13e02 (diff) |
Merge pull request #1380 from ElectricSolstice/wparentheses_removal
Changed code to remove gcc -Wparentheses warnings.
Diffstat (limited to 'tools/editor/plugins')
-rw-r--r-- | tools/editor/plugins/script_editor_plugin.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/editor/plugins/script_editor_plugin.cpp b/tools/editor/plugins/script_editor_plugin.cpp index bb9b36bb66..72b3025f2f 100644 --- a/tools/editor/plugins/script_editor_plugin.cpp +++ b/tools/editor/plugins/script_editor_plugin.cpp @@ -630,11 +630,13 @@ bool ScriptEditor::_test_script_times_on_disk() { - if (!all_ok) - if (bool(EDITOR_DEF("text_editor/auto_reload_changed_scripts",false))) + if (!all_ok) { + if (bool(EDITOR_DEF("text_editor/auto_reload_changed_scripts",false))) { script_editor->_reload_scripts(); - else + } else { disk_changed->call_deferred("popup_centered_ratio",0.5); + } + } return all_ok; } |