summaryrefslogtreecommitdiffstats
path: root/win/C#/Queue
diff options
context:
space:
mode:
authorsr55 <[email protected]>2009-04-01 23:48:34 +0000
committersr55 <[email protected]>2009-04-01 23:48:34 +0000
commit414d6a56cc67f2fa56353ee3ce80adaa8cfeb45f (patch)
tree171172730223e0e525b68f4afb3ea6ff2e5ccc9c /win/C#/Queue
parent683faec1c917365b32332d86693e72479ba315bf (diff)
WinGui:
- Just some minor code tweaks to clean things up. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2291 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Queue')
-rw-r--r--win/C#/Queue/QueueHandler.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/win/C#/Queue/QueueHandler.cs b/win/C#/Queue/QueueHandler.cs
index 478757e95..8008d17ea 100644
--- a/win/C#/Queue/QueueHandler.cs
+++ b/win/C#/Queue/QueueHandler.cs
@@ -204,8 +204,9 @@ namespace Handbrake.Queue
{
List<QueueItem> list = ser.Deserialize(strm) as List<QueueItem>;
- foreach (QueueItem item in list)
- queue.Add(item);
+ if (list != null)
+ foreach (QueueItem item in list)
+ queue.Add(item);
if (file != "hb_queue_recovery.xml")
write2disk("hb_queue_recovery.xml");