[Monodevelop-patches-list] r675 - trunk/MonoDevelop/src/Libraries/ICSharpCode.TextEditor/src/Gui

commit-watcher at mono-cvs.ximian.com commit-watcher at mono-cvs.ximian.com
Mon Jan 26 23:53:31 EST 2004


Author: tberman
Date: 2004-01-26 23:53:31 -0500 (Mon, 26 Jan 2004)
New Revision: 675

Modified:
   trunk/MonoDevelop/src/Libraries/ICSharpCode.TextEditor/src/Gui/TextAreaClipboardHandler.cs
Log:
cleanup


Modified: trunk/MonoDevelop/src/Libraries/ICSharpCode.TextEditor/src/Gui/TextAreaClipboardHandler.cs
===================================================================
--- trunk/MonoDevelop/src/Libraries/ICSharpCode.TextEditor/src/Gui/TextAreaClipboardHandler.cs	2004-01-27 04:43:21 UTC (rev 674)
+++ trunk/MonoDevelop/src/Libraries/ICSharpCode.TextEditor/src/Gui/TextAreaClipboardHandler.cs	2004-01-27 04:53:31 UTC (rev 675)
@@ -45,15 +45,7 @@
 		
 		public bool EnablePaste {
 			get {
-				//FIXME: This should make sure pastable data is somewhere on the clipboard.
-				// Clipboard.GetDataObject may throw an exception...
-				try {
-					return clipboard.WaitIsTextAvailable ();
-				} catch (Exception e) {
-					Console.WriteLine("Got exception while enablepaste : " + e);
-					return false;
-				}
-				return true;
+				return clipboard.WaitIsTextAvailable ();
 			}
 		}
 		




More information about the Monodevelop-patches-list mailing list