summaryrefslogtreecommitdiff
path: root/src/Commands.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2014-10-03 14:53:52 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2014-10-03 14:53:52 +0200
commite97c1ca41f345bcf57417f6dc06e0d42f3547443 (patch)
treeb9afc8d1553a62369c373c703d4f479ad81188af /src/Commands.vala
parent566dc060676b41e1e58a446b7dcc4159e242fee6 (diff)
Imported Upstream version 0.20.1
Diffstat (limited to 'src/Commands.vala')
-rw-r--r--src/Commands.vala10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/Commands.vala b/src/Commands.vala
index 0ad8ecb..04b771c 100644
--- a/src/Commands.vala
+++ b/src/Commands.vala
@@ -211,7 +211,7 @@ public abstract class GenericPhotoTransformationCommand : SingleDataSourceComman
base(photo, name, explanation);
}
- ~GenericPhotoTransformationState() {
+ ~GenericPhotoTransformationCommand() {
if (original_state != null)
original_state.broken.disconnect(on_state_broken);
@@ -795,8 +795,16 @@ public class StraightenCommand : GenericPhotoTransformationCommand {
}
public override void execute_on_photo(Photo photo) {
+ // thaw collection so both alterations are signalled at the same time
+ DataCollection? collection = photo.get_membership();
+ if (collection != null)
+ collection.freeze_notifications();
+
photo.set_straighten(theta);
photo.set_crop(crop);
+
+ if (collection != null)
+ collection.thaw_notifications();
}
}