From 651d5e81ba09774975816c367c1491b8cea5fcf3 Mon Sep 17 00:00:00 2001 From: Matt Ward Date: Sat, 20 Dec 2008 19:56:44 +0000 Subject: [PATCH] Fixed ObjectDisposedException in Component Inspector when opening the FindDialog with no object selected. git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@3708 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61 --- .../Src/ObjectBrowser/Dialogs/FindDialog.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AddIns/Misc/ComponentInspector/ComponentInspector.Core/Src/ObjectBrowser/Dialogs/FindDialog.cs b/src/AddIns/Misc/ComponentInspector/ComponentInspector.Core/Src/ObjectBrowser/Dialogs/FindDialog.cs index f146a24fee..1a83c615a8 100644 --- a/src/AddIns/Misc/ComponentInspector/ComponentInspector.Core/Src/ObjectBrowser/Dialogs/FindDialog.cs +++ b/src/AddIns/Misc/ComponentInspector/ComponentInspector.Core/Src/ObjectBrowser/Dialogs/FindDialog.cs @@ -392,7 +392,7 @@ namespace NoGoop.ObjBrowser.Dialogs { TreeNode node = GetFirstSelectedNode(); if (node == null) { - Close(); + Hide(); _instance = null; ErrorDialog.Show(StringParser.Parse("${res:ComponentInspector.FindDialog.NoTreeNodeSelectedMessage}"), StringParser.Parse("${res:ComponentInspector.FindDialog.NoTreeNodeSelectedDialogTitle}"),