blam r553 - trunk/src



Author: cmartin
Date: Sun Apr 20 08:54:18 2008
New Revision: 553
URL: http://svn.gnome.org/viewvc/blam?rev=553&view=rev

Log:
Fix the URI-in-clipboard logic.


Modified:
   trunk/src/Dialogs.cs

Modified: trunk/src/Dialogs.cs
==============================================================================
--- trunk/src/Dialogs.cs	(original)
+++ trunk/src/Dialogs.cs	Sun Apr 20 08:54:18 2008
@@ -63,10 +63,11 @@
 
     public static void ClipboardTextReceived(Clipboard clipboard, string text)
     {
-        if(text == null || !text.StartsWith("http://";) || !text.StartsWith("https://";) || text == string.Empty){
+        if((text == null) || ((!text.StartsWith("http://";)) && (!text.StartsWith("https://";)))
+               || (text == string.Empty)){
             mThis.urlEntry.Text = "";
         } else {
-            mThis.urlEntry.InsertText(text);
+            mThis.urlEntry.Text = text;
         }
     }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]