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
This commit is contained in:
RKrom 2012-05-04 11:00:41 +00:00
commit 5a5da6a423

View file

@ -23,6 +23,7 @@ using System.Collections.Generic;
using Greenshot.Plugin;
using GreenshotPlugin.Core;
using Greenshot.Destinations;
namespace Greenshot.Helpers {
/// <summary>
@ -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;
}
}
}
}