diff options
author | sr55 <[email protected]> | 2019-10-02 19:09:08 +0100 |
---|---|---|
committer | sr55 <[email protected]> | 2019-10-02 19:09:24 +0100 |
commit | e0d3c0fde733a37186fd9276a26f4d0f3215217e (patch) | |
tree | b5b015f87f607e8c397d3dffe8bbcd8d2b066aa6 /win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs | |
parent | 4986fd54995d4c315049b9ec0ecf47ebc1e4a3b8 (diff) |
WinGui: Fix crash on Audio Defaults View. Fixes #2341
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs')
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs index d33cf5ea3..39a1a224a 100644 --- a/win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs @@ -226,10 +226,7 @@ namespace HandBrakeWPF.ViewModels /// </summary>
public void ShowAudioDefaults()
{
- AudioDefaultsView view = new AudioDefaultsView();
- view.DataContext = this.AudioDefaultsViewModel;
-
- if (view.ShowDialog() == true)
+ if (this.windowManager.ShowDialog(this.AudioDefaultsViewModel) == true)
{
this.OnTabStatusChanged(null);
}
|