summaryrefslogtreecommitdiff
path: root/src/direct/DirectPhotoPage.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2022-10-01 21:55:07 +0200
committerJörg Frings-Fürst <debian@jff.email>2022-10-01 21:55:07 +0200
commitf542481df58f3222143bc260feb34b5cf537d8e0 (patch)
tree31cd86e358bc70e6d83955fdcc0d8e05fc32c325 /src/direct/DirectPhotoPage.vala
parent0b99aa7b114b6c8eb0d55742c4be2f3a73f44e39 (diff)
parentbb0e1e40d2de6b093b564f4f2cd0c44aa32380b8 (diff)
Update upstream source from tag 'upstream/0.30.17'
Update to upstream version '0.30.17' with Debian dir 3a9f978d21f3777edc044a3c6b84923dd9b60a25
Diffstat (limited to 'src/direct/DirectPhotoPage.vala')
-rw-r--r--src/direct/DirectPhotoPage.vala7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/direct/DirectPhotoPage.vala b/src/direct/DirectPhotoPage.vala
index ad0d4d0..39a87f1 100644
--- a/src/direct/DirectPhotoPage.vala
+++ b/src/direct/DirectPhotoPage.vala
@@ -407,9 +407,8 @@ public class DirectPhotoPage : EditingHostPage {
output_format_filter.add_pattern("*." + uppercase_extension);
}
- Gtk.FileChooserDialog save_as_dialog = new Gtk.FileChooserDialog(_("Save As"),
- AppWindow.get_instance(), Gtk.FileChooserAction.SAVE, Resources.CANCEL_LABEL,
- Gtk.ResponseType.CANCEL, Resources.OK_LABEL, Gtk.ResponseType.OK);
+ var save_as_dialog = new Gtk.FileChooserNative(_("Save As"),
+ AppWindow.get_instance(), Gtk.FileChooserAction.SAVE, Resources.OK_LABEL, Resources.CANCEL_LABEL);
save_as_dialog.set_select_multiple(false);
save_as_dialog.set_current_name(filename);
save_as_dialog.set_current_folder(current_save_dir.get_path());
@@ -418,7 +417,7 @@ public class DirectPhotoPage : EditingHostPage {
save_as_dialog.set_local_only(false);
int response = save_as_dialog.run();
- if (response == Gtk.ResponseType.OK) {
+ if (response == Gtk.ResponseType.ACCEPT) {
// flag to prevent asking user about losing changes to the old file (since they'll be
// loaded right into the new one)
drop_if_dirty = true;