From 566dc060676b41e1e58a446b7dcc4159e242fee6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Tue, 23 Sep 2014 09:36:45 +0200 Subject: Imported Upstream version 0.20.0 --- src/MediaPage.vala | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/MediaPage.vala') diff --git a/src/MediaPage.vala b/src/MediaPage.vala index 4d7ee2a..9f98466 100644 --- a/src/MediaPage.vala +++ b/src/MediaPage.vala @@ -818,6 +818,14 @@ public abstract class MediaPage : CheckerboardPage { set_display_tags(Config.Facade.get_instance().get_display_photo_tags()); get_view().thaw_notifications(); + // Update cursor position to match the selection that potentially moved while the user + // navigated in SinglePhotoPage + if (get_view().get_selected_count() > 0) { + CheckerboardItem? selected = (CheckerboardItem?) get_view().get_selected_at(0); + if (selected != null) + cursor_to_item(selected); + } + sync_sort(); } -- cgit v1.2.3