diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2014-10-09 11:56:47 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2014-10-09 11:56:47 +0200 |
commit | 61daf2ebd98acb99ef2e06a743cf0dc76ecde3c6 (patch) | |
tree | 55c4c914bb35e1a85de2a95e10be499731e6d2d8 /src/Commands.vala | |
parent | 1c172114dfae26e3861c65510b45d9f6b7bdab67 (diff) | |
parent | 7b10dbdcb4c9027cd6f4690d6d70a2f36b37ab26 (diff) |
Merge branch 'master' of ssh://git.debian.org/git/collab-maint/shotwell
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(); } } |