diff options
author | ElectricSolstice <repairagent@yahoo.com> | 2015-02-16 18:58:41 -0800 |
---|---|---|
committer | ElectricSolstice <repairagent@yahoo.com> | 2015-02-16 18:58:41 -0800 |
commit | 0e1f34b49da3066bed94b316f22e6dd805509bf3 (patch) | |
tree | e966770a1bca9a3be47f756d6a498b8d61dd1b9c /tools/editor/plugins | |
parent | 2bea642583efeb68886e71950384f297f2d7ee12 (diff) |
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 1349d5ccab..a6ce6d3ef2 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; } |