|
|
|
|
@ -943,7 +943,10 @@ bool Notebook::save_modified_dialog(size_t index) {
|
|
|
|
|
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.show_all(); |
|
|
|
|
if(dialog.run() == Gtk::RESPONSE_YES) |
|
|
|
|
int result = dialog.run(); |
|
|
|
|
if(result == Gtk::RESPONSE_YES) |
|
|
|
|
return save(index); |
|
|
|
|
else if(result == Gtk::RESPONSE_NO) |
|
|
|
|
return true; |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
|