diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2014-11-02 09:53:10 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2014-11-02 09:53:10 +0100 |
commit | 2785a691b958a79a1dd606c445188c71c3f58b3c (patch) | |
tree | 671ec0f07cc8b60529e302aac5348b062f103942 /src/Commands.vala | |
parent | 566dc060676b41e1e58a446b7dcc4159e242fee6 (diff) |
Imported Upstream version 0.20.2upstream/0.20.2
Diffstat (limited to 'src/Commands.vala')
-rw-r--r-- | src/Commands.vala | 10 |
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(); } } |