summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsr55 <[email protected]>2011-09-08 17:54:44 +0000
committersr55 <[email protected]>2011-09-08 17:54:44 +0000
commit461d8a5d3a26c1eff8606540d7da8d8cc01140dc (patch)
treedf9d942f097069ba32480c86c8a1d3853a2a1a8a
parentd9a3ba1804d7b648870aa0a6ed233a44d2c66bec (diff)
WinGui: Don't "recover" completed queue items when restarting.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4207 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r--win/CS/Functions/Main.cs6
1 files changed, 4 insertions, 2 deletions
diff --git a/win/CS/Functions/Main.cs b/win/CS/Functions/Main.cs
index 5aaed22f4..f80233066 100644
--- a/win/CS/Functions/Main.cs
+++ b/win/CS/Functions/Main.cs
@@ -401,9 +401,11 @@ namespace Handbrake.Functions
using (FileStream strm = new FileStream(Path.Combine(file.DirectoryName, file.Name), FileMode.Open, FileAccess.Read))
{
List<QueueTask> list = Ser.Deserialize(strm) as List<QueueTask>;
- if (list != null)
+
+ if (list != null && list.Count != 0)
{
- if (list.Count != 0)
+ List<QueueTask> tasks = list.Where(l => l.Status != QueueItemStatus.Completed).ToList();
+ if (tasks.Count != 0)
{
queueFiles.Add(file.Name);
}