diff options
author | sr55 <[email protected]> | 2012-09-02 13:14:56 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2012-09-02 13:14:56 +0000 |
commit | bf7e3f6e6ef524ef8245b57f5e11b3e101525c99 (patch) | |
tree | 058397417dffa714c40ae9b109abff5c35267463 /win/CS | |
parent | ccd60c79e7bbe7e961885c8d7eb24a6536aeb670 (diff) |
WinGui: Fix preview window.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4928 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS')
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs index a6ae77489..a22fa83d9 100644 --- a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs @@ -906,14 +906,16 @@ namespace HandBrakeWPF.ViewModels public void OpenPreviewWindow()
{
Window window = Application.Current.Windows.Cast<Window>().FirstOrDefault(x => x.GetType() == typeof(PreviewView));
+ IPreviewViewModel viewModel = IoC.Get<IPreviewViewModel>();
if (window != null)
{
+ viewModel.Task = this.CurrentTask;
window.Activate();
}
else
{
- IPreviewViewModel viewModel = IoC.Get<IPreviewViewModel>();
+ viewModel.Task = this.CurrentTask;
this.WindowManager.ShowWindow(viewModel);
}
}
|