[shotwell/shotwell-0.26] Save selection before setting the restore point
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [shotwell/shotwell-0.26] Save selection before setting the restore point
- Date: Sat, 10 Mar 2018 06:40:07 +0000 (UTC)
commit 3c909ce712d3707c2fd042e29a9c6f66ad5fb521
Author: Jens Georg <mail jensge org>
Date: Mon Feb 26 18:16:40 2018 +0100
Save selection before setting the restore point
With the fix for bug 786531, setting the restore point before executing
the job would add the restore point to the list of selected items.
https://bugzilla.gnome.org/show_bug.cgi?id=793818
src/MediaPage.vala | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/MediaPage.vala b/src/MediaPage.vala
index d9084f3..3678196 100644
--- a/src/MediaPage.vala
+++ b/src/MediaPage.vala
@@ -816,13 +816,15 @@ public abstract class MediaPage : CheckerboardPage {
restore_point = get_view().get_next(cursor) as CheckerboardItem;
}
+ var sources = get_view().get_selected_sources();
+
if ((restore_point != null) && (get_view().contains(restore_point))) {
set_cursor(restore_point);
}
if (get_view().get_selected_count() > 0) {
get_command_manager().execute(new TrashUntrashPhotosCommand(
- (Gee.Collection<MediaSource>) get_view().get_selected_sources(), true));
+ (Gee.Collection<MediaSource>) sources, true));
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]