Browse Source

Reversed save modified dialog change: answering no now again closes buffer

pipelines/353213535
eidheim 4 years ago
parent
commit
140e40b300
  1. 5
      src/notebook.cpp

5
src/notebook.cpp

@ -943,7 +943,10 @@ bool Notebook::save_modified_dialog(size_t index) {
dialog.set_default_response(Gtk::RESPONSE_YES); dialog.set_default_response(Gtk::RESPONSE_YES);
dialog.set_secondary_text("Do you want to save " + filesystem::get_short_path(get_view(index)->file_path).string() + "?"); dialog.set_secondary_text("Do you want to save " + filesystem::get_short_path(get_view(index)->file_path).string() + "?");
dialog.show_all(); dialog.show_all();
if(dialog.run() == Gtk::RESPONSE_YES) int result = dialog.run();
if(result == Gtk::RESPONSE_YES)
return save(index); return save(index);
else if(result == Gtk::RESPONSE_NO)
return true;
return false; return false;
} }

Loading…
Cancel
Save