summaryrefslogtreecommitdiffstats
path: root/win/CS
diff options
context:
space:
mode:
authorsr55 <[email protected]>2012-10-18 20:24:08 +0000
committersr55 <[email protected]>2012-10-18 20:24:08 +0000
commit44a426074f1bdc8bc5303a18fed2aa194e126a63 (patch)
treec76293f6729d745da7adc5ee26b79fef764a35b3 /win/CS
parent905b5b6e03ed8c6dac66b3ebf62d968d68e381c3 (diff)
WinGui: Couple minor fixes.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5021 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS')
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs5
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs1
2 files changed, 5 insertions, 1 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
index 4b90e8feb..1aa60eb97 100644
--- a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
+++ b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
@@ -1423,7 +1423,10 @@ namespace HandBrakeWPF.ViewModels
/// </param>
public void StartScan(string filename, int title)
{
- this.scanService.Scan(filename, title, this.UserSettingService.GetUserSetting<int>(ASUserSettingConstants.PreviewScanCount), null);
+ if (!string.IsNullOrEmpty(filename))
+ {
+ this.scanService.Scan(filename, title, this.UserSettingService.GetUserSetting<int>(ASUserSettingConstants.PreviewScanCount), null);
+ }
}
#endregion
diff --git a/win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs
index 80fe4372a..1fb80023e 100644
--- a/win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs
+++ b/win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs
@@ -284,6 +284,7 @@ namespace HandBrakeWPF.ViewModels
{
task.Status = QueueItemStatus.Waiting;
this.queueProcessor.BackupQueue(null);
+ this.JobsPending = string.Format("{0} jobs pending", this.queueProcessor.Count);
}
/// <summary>