diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2014-10-03 14:54:01 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2014-10-03 14:54:01 +0200 |
commit | 7b10dbdcb4c9027cd6f4690d6d70a2f36b37ab26 (patch) | |
tree | 8c2dc037df8983a487c4f271a95e38c87f4711e3 /src/Commands.vala | |
parent | 021b663419ce8524fe1bd3f928062bef96f215c4 (diff) | |
parent | e97c1ca41f345bcf57417f6dc06e0d42f3547443 (diff) |
Merge tag 'upstream/0.20.1'
Upstream version 0.20.1
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(); } } |