summaryrefslogtreecommitdiff
path: root/src/Commands.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2018-07-09 12:10:38 +0200
committerJörg Frings-Fürst <debian@jff.email>2018-07-09 12:10:38 +0200
commit709e2d6f5652ec90c194a4ec2b530bebc6f952cb (patch)
tree496b2f3899e1d5728ee9ae76095cc5056c317447 /src/Commands.vala
parentf1353e9ffd34db5f755c7da0b3f9c10638fbfd38 (diff)
parent5c8be07095cc04a6d8a95204b0504fd7ab030154 (diff)
Merge branch 'release/0.28.3-1'0.28.3-1
Diffstat (limited to 'src/Commands.vala')
-rw-r--r--src/Commands.vala12
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) {