diff options
author | sr55 <[email protected]> | 2012-01-29 13:25:37 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2012-01-29 13:25:37 +0000 |
commit | bd0a4e453ec01a9b12c7600d0c3aa62e0a797ca2 (patch) | |
tree | 3076e99a9545de0c62a0b99f18b622ddc4538116 /win/CS/HandBrake.ApplicationServices/Services | |
parent | df4a57b120d44b029538c903491db6e8797cd98c (diff) |
WinGui: Fix an issue with multi-instance queue recovery files not being cleared up properly.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4426 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices/Services')
-rw-r--r-- | win/CS/HandBrake.ApplicationServices/Services/QueueManager.cs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Services/QueueManager.cs b/win/CS/HandBrake.ApplicationServices/Services/QueueManager.cs index c138708a7..6cddd2707 100644 --- a/win/CS/HandBrake.ApplicationServices/Services/QueueManager.cs +++ b/win/CS/HandBrake.ApplicationServices/Services/QueueManager.cs @@ -315,6 +315,7 @@ namespace HandBrake.ApplicationServices.Services if (File.Exists(tempPath))
{
+ bool invokeUpdate = false;
using (FileStream strm = new FileStream((!string.IsNullOrEmpty(importPath) ? importPath : tempPath), FileMode.Open, FileAccess.Read))
{
if (strm.Length != 0)
@@ -338,9 +339,14 @@ namespace HandBrake.ApplicationServices.Services }
}
- this.InvokeQueueChanged(EventArgs.Empty);
+ invokeUpdate = true;
}
}
+
+ if (invokeUpdate)
+ {
+ this.InvokeQueueChanged(EventArgs.Empty);
+ }
}
}
|