EditorNode: fix clicking ok keeps trying to save
(cherry picked from commit e12e6cacdb
)
This commit is contained in:
parent
dc97f91a18
commit
ddb31e9c5a
|
@ -589,6 +589,7 @@ void EditorNode::save_resource_in_path(const Ref<Resource> &p_resource, const St
|
||||||
Error err = ResourceSaver::save(path, p_resource, flg | ResourceSaver::FLAG_REPLACE_SUBRESOURCE_PATHS);
|
Error err = ResourceSaver::save(path, p_resource, flg | ResourceSaver::FLAG_REPLACE_SUBRESOURCE_PATHS);
|
||||||
|
|
||||||
if (err != OK) {
|
if (err != OK) {
|
||||||
|
current_option = -1;
|
||||||
accept->set_text(TTR("Error saving resource!"));
|
accept->set_text(TTR("Error saving resource!"));
|
||||||
accept->popup_centered_minsize();
|
accept->popup_centered_minsize();
|
||||||
return;
|
return;
|
||||||
|
@ -1186,6 +1187,7 @@ void EditorNode::_dialog_action(String p_file) {
|
||||||
Error err = ResourceSaver::save(p_file, ml);
|
Error err = ResourceSaver::save(p_file, ml);
|
||||||
if (err) {
|
if (err) {
|
||||||
|
|
||||||
|
current_option = -1;
|
||||||
accept->get_ok()->set_text(TTR("I see.."));
|
accept->get_ok()->set_text(TTR("I see.."));
|
||||||
accept->set_text(TTR("Error saving MeshLibrary!"));
|
accept->set_text(TTR("Error saving MeshLibrary!"));
|
||||||
accept->popup_centered_minsize();
|
accept->popup_centered_minsize();
|
||||||
|
@ -1220,6 +1222,7 @@ void EditorNode::_dialog_action(String p_file) {
|
||||||
Error err = ResourceSaver::save(p_file, ml);
|
Error err = ResourceSaver::save(p_file, ml);
|
||||||
if (err) {
|
if (err) {
|
||||||
|
|
||||||
|
current_option = -1;
|
||||||
accept->get_ok()->set_text(TTR("I see.."));
|
accept->get_ok()->set_text(TTR("I see.."));
|
||||||
accept->set_text(TTR("Error saving TileSet!"));
|
accept->set_text(TTR("Error saving TileSet!"));
|
||||||
accept->popup_centered_minsize();
|
accept->popup_centered_minsize();
|
||||||
|
|
Loading…
Reference in New Issue