Skip to content
This repository has been archived by the owner on Oct 16, 2020. It is now read-only.

Commit

Permalink
fix #548: 'Choose exceptiosn you want the debugger to break on' windo…
Browse files Browse the repository at this point in the history
…w does not have correct owner
  • Loading branch information
siegfriedpammer committed Aug 26, 2014
1 parent 62b90db commit 19c98ee
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
using System.Windows.Media;

using ICSharpCode.Core;
using ICSharpCode.SharpDevelop;
using ICSharpCode.SharpDevelop.Gui;
using ICSharpCode.SharpDevelop.Services;

Expand Down Expand Up @@ -60,13 +61,14 @@ public override void LoadOptions()
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;
}
Expand Down

1 comment on commit 19c98ee

@dgrunwald
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the correct owner needs to be the options dialog, not the main window.

Please sign in to comment.