summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/ViewModels
diff options
context:
space:
mode:
authorsr55 <[email protected]>2012-07-07 15:49:55 +0000
committersr55 <[email protected]>2012-07-07 15:49:55 +0000
commit7746907bf0ae4ef3f02aaa28a34a493dade912a2 (patch)
tree50095733d633794e8fdceafd8b19214acdef181f /win/CS/HandBrakeWPF/ViewModels
parent563ff8d014bcf1a65e5185679215e0ec26f7e9f0 (diff)
WinGui: Additional fixes for multi-instance.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4819 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels')
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
index 44dc15eff..d63915624 100644
--- a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
+++ b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
@@ -181,6 +181,9 @@ namespace HandBrakeWPF.ViewModels
public MainViewModel(IWindowManager windowManager, IUserSettingService userSettingService, IScan scanService, IEncode encodeService, IPresetService presetService,
IErrorService errorService, IShellViewModel shellViewModel, IUpdateService updateService)
{
+ GeneralUtilities.SetInstanceId();
+
+
this.scanService = scanService;
this.encodeService = encodeService;
this.presetService = presetService;
@@ -189,6 +192,7 @@ namespace HandBrakeWPF.ViewModels
this.updateService = updateService;
this.userSettingService = userSettingService;
this.queueProcessor = IoC.Get<IQueueProcessor>();
+ queueProcessor.QueueManager.ResetInstanceId();
// Setup Properties
this.WindowTitle = "HandBrake";