[gnome-photos] application: Exit selection mode as soon as the export starts



commit d1e64cbd3f6bbffd167b3847f4ba539fbc9bb0b2
Author: Debarshi Ray <debarshir gnome org>
Date:   Wed Aug 24 15:19:19 2016 +0200

    application: Exit selection mode as soon as the export starts

 src/photos-application.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/photos-application.c b/src/photos-application.c
index 2b2f5d4..920d850 100644
--- a/src/photos-application.c
+++ b/src/photos-application.c
@@ -1206,7 +1206,6 @@ photos_application_save_save (GObject *source_object, GAsyncResult *res, gpointe
   photos_export_notification_new (items, file);
 
  out:
-  photos_selection_controller_set_selection_mode (self->sel_cntrlr, FALSE);
   g_application_release (G_APPLICATION (self));
   g_clear_object (&file);
   g_list_free_full (items, g_object_unref);
@@ -1232,6 +1231,8 @@ photos_application_save_response (GtkDialog *dialog, gint response_id, gpointer
   item = photos_application_get_selection_or_active_item (self);
   g_return_if_fail (item != NULL);
 
+  photos_selection_controller_set_selection_mode (self->sel_cntrlr, FALSE);
+
   pictures_path = g_get_user_special_dir (G_USER_DIRECTORY_PICTURES);
   export_path = g_build_filename (pictures_path, PHOTOS_EXPORT_SUBPATH, NULL);
   export = g_file_new_for_path (export_path);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]