From 78a297cb5580f37bca62cd660d3a04a72bcf7681 Mon Sep 17 00:00:00 2001 From: sr55 Date: Sat, 28 Apr 2012 23:13:25 +0000 Subject: WinGui: Fix Preview Window Play button crash. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4611 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/CS/HandBrake.ApplicationServices/Model/QueueTask.cs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'win') diff --git a/win/CS/HandBrake.ApplicationServices/Model/QueueTask.cs b/win/CS/HandBrake.ApplicationServices/Model/QueueTask.cs index 6848ce3ab..0fce6eaeb 100644 --- a/win/CS/HandBrake.ApplicationServices/Model/QueueTask.cs +++ b/win/CS/HandBrake.ApplicationServices/Model/QueueTask.cs @@ -39,6 +39,10 @@ namespace HandBrake.ApplicationServices.Model public QueueTask(string query) { this.Query = query; + if (this.Task == null) + { + this.Task = new EncodeTask(); + } } #endregion -- cgit v1.2.3