summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);
}