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

Commit b6d3fd1

Browse files
set the parent window as ChooseExceptionsDialog.Owner
1 parent 2752206 commit b6d3fd1

2 files changed

Lines changed: 1 addition & 33 deletions

File tree

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

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,8 @@
1919
using System;
2020
using System.Collections.Generic;
2121
using System.Linq;
22-
using System.Text;
2322
using System.Windows;
24-
using System.Windows.Controls;
25-
using System.Windows.Data;
26-
using System.Windows.Documents;
27-
using System.Windows.Input;
28-
using System.Windows.Media;
2923

30-
using ICSharpCode.Core;
31-
using ICSharpCode.SharpDevelop;
3224
using ICSharpCode.SharpDevelop.Gui;
3325
using ICSharpCode.SharpDevelop.Services;
3426

@@ -68,7 +60,7 @@ public override void LoadOptions()
6860
void ChooseExceptionsClick(object sender, RoutedEventArgs e)
6961
{
7062
var dialog = new ChooseExceptionsDialog(exceptionFilterList);
71-
dialog.Owner = SD.Workbench.MainWindow;
63+
dialog.Owner = Window.GetWindow(this);
7264
if (dialog.ShowDialog() == true) {
7365
exceptionFilterList = dialog.ExceptionFilterList;
7466
}

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

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -558,30 +558,6 @@ public void Exception2(ICorDebugAppDomain pAppDomain, ICorDebugThread pThread, I
558558
}
559559

560560
Dictionary<string, bool> exceptionFilter;
561-
562-
static string ConvertWildcardsToRegex(string searchPattern)
563-
{
564-
if (string.IsNullOrEmpty(searchPattern))
565-
return "";
566-
567-
StringBuilder builder = new StringBuilder();
568-
569-
foreach (char ch in searchPattern) {
570-
switch (ch) {
571-
case '?':
572-
builder.Append(".");
573-
break;
574-
case '*':
575-
builder.Append(".*");
576-
break;
577-
default:
578-
builder.Append(Regex.Escape(ch.ToString()));
579-
break;
580-
}
581-
}
582-
583-
return builder.ToString();
584-
}
585561

586562
bool BreakOnException(Thread thread)
587563
{

0 commit comments

Comments
 (0)