[Monodevelop-patches-list] r491 - trunk/MonoDevelop/src/AddIns/DisplayBindings/TextEditor/Gui/Dialogs

commit-watcher at mono-cvs.ximian.com commit-watcher at mono-cvs.ximian.com
Thu Jan 15 16:53:57 EST 2004


Author: benm
Date: 2004-01-15 16:53:56 -0500 (Thu, 15 Jan 2004)
New Revision: 491

Modified:
   trunk/MonoDevelop/src/AddIns/DisplayBindings/TextEditor/Gui/Dialogs/ReplaceDialog.cs
Log:
dont loose find dialog

Modified: trunk/MonoDevelop/src/AddIns/DisplayBindings/TextEditor/Gui/Dialogs/ReplaceDialog.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/DisplayBindings/TextEditor/Gui/Dialogs/ReplaceDialog.cs	2004-01-15 21:41:08 UTC (rev 490)
+++ trunk/MonoDevelop/src/AddIns/DisplayBindings/TextEditor/Gui/Dialogs/ReplaceDialog.cs	2004-01-15 21:53:56 UTC (rev 491)
@@ -187,7 +187,8 @@
 			
 			// insert event handlers
 			findButton.Clicked  += new EventHandler(FindNextEvent);
-			closeButton.Clicked += new EventHandler(CloseDialogEvent);
+			closeButton.Clicked += new EventHandler(CloseDialogEvent);
+			DeleteEvent += new GtkSharp.DeleteEventHandler (OnDeleted);
 			
 			if (replaceMode) {
 				this.Title = resourceService.GetString("Dialog.NewProject.SearchReplace.ReplaceDialogName");
@@ -214,8 +215,13 @@
 		{
 			//base.OnClosed(e);
 			SearchReplaceManager.ReplaceDialog     = null;
-		}
+		}
 		
+		void OnDeleted (object o, GtkSharp.DeleteEventArgs args)
+		{
+			SearchReplaceManager.ReplaceDialog = null;
+		}
+
 		public void SetSearchPattern(string pattern)
 		{
 			searchPatternComboBox.Entry.Text  = pattern;




More information about the Monodevelop-patches-list mailing list