diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2018-05-01 14:43:08 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2018-05-01 14:43:08 +0200 |
commit | 2b3f22361da0c1d8e6ce70d71352821758186db7 (patch) | |
tree | 5d10633b47369b3aa52a05bf889ede0dbe5ee108 /src/Commands.vala | |
parent | 211da5fc3048ca2b6ccee2166b0aaaade55cb84f (diff) | |
parent | dc6c76eb04dfe3d4262a1806808f0bc0bf523238 (diff) |
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'src/Commands.vala')
-rw-r--r-- | src/Commands.vala | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Commands.vala b/src/Commands.vala index 75164c5..7441a50 100644 --- a/src/Commands.vala +++ b/src/Commands.vala @@ -920,6 +920,10 @@ public abstract class MovePhotosCommand : Command { } public override void execute() { + + // create the new event + base.execute(); + // Are we at an event page already? if ((LibraryWindow.get_app().get_current_page() is EventPage)) { Event evt = ((EventPage) LibraryWindow.get_app().get_current_page()).get_event(); @@ -933,17 +937,13 @@ public abstract class MovePhotosCommand : Command { } else { // We're in a library or tag page. - // Are we moving these to a newly-created (and therefore empty) event? - if (((Event) new_event_proxy.get_source()).get_media_count() == 0) { + // Are we moving these to a newly-created event (i.e. has same size)? + if (((Event) new_event_proxy.get_source()).get_media_count() == source_list.size) { // Yes - jump to the new event. LibraryWindow.get_app().switch_to_event((Event) new_event_proxy.get_source()); } } - // Otherwise - don't jump; users found the jumping disconcerting. - - // create the new event - base.execute(); } public override void execute_on_source(DataSource source) { |