diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-08-07 13:49:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-07 13:49:33 +0200 |
commit | ba541bceca806a53070a4fd54955ac4a63c1633a (patch) | |
tree | a03f55aa6d660a7c3659705348842a3e5b208e54 /editor/plugin_config_dialog.cpp | |
parent | 904e3100aceee7560e24ae1293c5b8a1e6201d55 (diff) | |
parent | e0b5b218638df5b7b2998233182a7d8a1118e717 (diff) |
Merge pull request #31077 from qarmin/coverity_bugs
Change some code proposed by Coverity and Cppcheck
Diffstat (limited to 'editor/plugin_config_dialog.cpp')
-rw-r--r-- | editor/plugin_config_dialog.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/plugin_config_dialog.cpp b/editor/plugin_config_dialog.cpp index 12bf544357..23056d25c0 100644 --- a/editor/plugin_config_dialog.cpp +++ b/editor/plugin_config_dialog.cpp @@ -130,7 +130,8 @@ void PluginConfigDialog::_notification(int p_what) { void PluginConfigDialog::config(const String &p_config_path) { if (p_config_path.length()) { Ref<ConfigFile> cf = memnew(ConfigFile); - cf->load(p_config_path); + Error err = cf->load(p_config_path); + ERR_FAIL_COND(err != OK); name_edit->set_text(cf->get_value("plugin", "name", "")); subfolder_edit->set_text(p_config_path.get_base_dir().get_basename().get_file()); |