Browse Source

set the parent window as ChooseExceptionsDialog.Owner

pull/517/head
Siegfried Pammer 11 years ago
parent
commit
b6d3fd1e0f
  1. 10
      src/AddIns/Debugger/Debugger.AddIn/Options/DebuggingOptionsPanel.xaml.cs
  2. 24
      src/AddIns/Debugger/Debugger.Core/ManagedCallback.cs

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

@ -19,16 +19,8 @@ @@ -19,16 +19,8 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using ICSharpCode.Core;
using ICSharpCode.SharpDevelop;
using ICSharpCode.SharpDevelop.Gui;
using ICSharpCode.SharpDevelop.Services;
@ -68,7 +60,7 @@ namespace Debugger.AddIn.Options @@ -68,7 +60,7 @@ namespace Debugger.AddIn.Options
void ChooseExceptionsClick(object sender, RoutedEventArgs e)
{
var dialog = new ChooseExceptionsDialog(exceptionFilterList);
dialog.Owner = SD.Workbench.MainWindow;
dialog.Owner = Window.GetWindow(this);
if (dialog.ShowDialog() == true) {
exceptionFilterList = dialog.ExceptionFilterList;
}

24
src/AddIns/Debugger/Debugger.Core/ManagedCallback.cs

@ -558,30 +558,6 @@ namespace Debugger @@ -558,30 +558,6 @@ namespace Debugger
}
Dictionary<string, bool> exceptionFilter;
static string ConvertWildcardsToRegex(string searchPattern)
{
if (string.IsNullOrEmpty(searchPattern))
return "";
StringBuilder builder = new StringBuilder();
foreach (char ch in searchPattern) {
switch (ch) {
case '?':
builder.Append(".");
break;
case '*':
builder.Append(".*");
break;
default:
builder.Append(Regex.Escape(ch.ToString()));
break;
}
}
return builder.ToString();
}
bool BreakOnException(Thread thread)
{

Loading…
Cancel
Save