Browse Source

fix #548: 'Choose exceptiosn you want the debugger to break on' window does not have correct owner

pull/517/head
Siegfried Pammer 11 years ago
parent
commit
19c98eeb3a
  1. 4
      src/AddIns/Debugger/Debugger.AddIn/Options/DebuggingOptionsPanel.xaml.cs

4
src/AddIns/Debugger/Debugger.AddIn/Options/DebuggingOptionsPanel.xaml.cs

@ -28,6 +28,7 @@ using System.Windows.Input; @@ -28,6 +28,7 @@ using System.Windows.Input;
using System.Windows.Media;
using ICSharpCode.Core;
using ICSharpCode.SharpDevelop;
using ICSharpCode.SharpDevelop.Gui;
using ICSharpCode.SharpDevelop.Services;
@ -60,13 +61,14 @@ namespace Debugger.AddIn.Options @@ -60,13 +61,14 @@ namespace Debugger.AddIn.Options
exceptionFilterList = DebuggingOptions.Instance.ExceptionFilterList.ToList();
if (exceptionFilterList.Count == 0) {
exceptionFilterList.Add(new ExceptionFilterEntry("*"));
exceptionFilterList.Add(new ExceptionFilterEntry("System.Exception"));
}
}
void ChooseExceptionsClick(object sender, RoutedEventArgs e)
{
var dialog = new ChooseExceptionsDialog(exceptionFilterList);
dialog.Owner = SD.Workbench.MainWindow;
if (dialog.ShowDialog() == true) {
exceptionFilterList = dialog.ExceptionFilterList;
}

Loading…
Cancel
Save