]> granicus.if.org Git - handbrake/commitdiff
WinGui: Revert last change. Only set the GUI to enabled when editing queue items...
authorsr55 <sr55.hb@outlook.com>
Wed, 3 Jun 2015 17:30:49 +0000 (17:30 +0000)
committersr55 <sr55.hb@outlook.com>
Wed, 3 Jun 2015 17:30:49 +0000 (17:30 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7271 b64f7644-9d1e-0410-96f1-a4d463321fa5

win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs

index 2293df64a54bc6f4ca0e99f8ca8d0cb47aeca54f..3274684117f2318eb1a01506fd4fa0cbda995213 100644 (file)
@@ -1194,12 +1194,8 @@ namespace HandBrakeWPF.ViewModels
             this.presetService.Load();\r
 \r
             // Queue Recovery\r
-            bool isRecovered = QueueRecoveryHelper.RecoverQueue(this.queueProcessor, this.errorService);\r
-            if (isRecovered)\r
-            {\r
-                this.HasSource = true;\r
-            }\r
-\r
+            QueueRecoveryHelper.RecoverQueue(this.queueProcessor, this.errorService);\r
+    \r
             this.SelectedPreset = this.presetService.DefaultPreset;\r
 \r
             // Log Cleaning\r
@@ -1988,9 +1984,10 @@ namespace HandBrakeWPF.ViewModels
                     this.NotifyOfPropertyChange(() => this.ScannedSource.Titles);\r
 \r
                     // Select the Users Title\r
-                    this.SelectedTitle = this.ScannedSource.Titles.FirstOrDefault(t => t.TitleNumber == this.CurrentTask.Title);\r
+                    this.SelectedTitle = this.ScannedSource.Titles.FirstOrDefault();\r
                     this.CurrentTask = new EncodeTask(queueEditTask);\r
                     this.NotifyOfPropertyChange(() => this.CurrentTask);\r
+                    this.HasSource = true;\r
 \r
                     // Update the Main Window\r
                     this.NotifyOfPropertyChange(() => this.Destination);\r