From 5a5da6a423e32e44ff111c7e4a36104ef410f710 Mon Sep 17 00:00:00 2001 From: RKrom Date: Fri, 4 May 2012 11:00:41 +0000 Subject: [PATCH] Fixed surface modification flag, was set to false if the picker or the editor was used. (which is not ok) git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1832 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4 --- Greenshot/Helpers/DestinationHelper.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Greenshot/Helpers/DestinationHelper.cs b/Greenshot/Helpers/DestinationHelper.cs index d14bb5d07..1e64af517 100644 --- a/Greenshot/Helpers/DestinationHelper.cs +++ b/Greenshot/Helpers/DestinationHelper.cs @@ -23,6 +23,7 @@ using System.Collections.Generic; using Greenshot.Plugin; using GreenshotPlugin.Core; +using Greenshot.Destinations; namespace Greenshot.Helpers { /// @@ -117,8 +118,10 @@ namespace Greenshot.Helpers { IDestination destination = RegisteredDestinations[designation]; if (destination.isActive) { if (destination.ExportCapture(manuallyInitiated, surface, captureDetails)) { - // Export worked, set the modified flag - surface.Modified = false; + // Export worked, set the modified flag to false if the export wasn't to the editor or picker + if (!EditorDestination.DESIGNATION.Equals(designation) && !PickerDestination.DESIGNATION.Equals(designation)) { + surface.Modified = false; + } } } }