tomboy r1919 - in trunk: . Tomboy/Addins/Bugzilla



Author: sschweiz
Date: Sun Mar  2 19:20:59 2008
New Revision: 1919
URL: http://svn.gnome.org/viewvc/tomboy?rev=1919&view=rev

Log:
* Tomboy/Addins/Bugzilla/BugzillaNoteAddin.cs: Allow dragging the same
  bug twice to a note. Fixes bug #519876.


Modified:
   trunk/ChangeLog
   trunk/Tomboy/Addins/Bugzilla/BugzillaNoteAddin.cs

Modified: trunk/Tomboy/Addins/Bugzilla/BugzillaNoteAddin.cs
==============================================================================
--- trunk/Tomboy/Addins/Bugzilla/BugzillaNoteAddin.cs	(original)
+++ trunk/Tomboy/Addins/Bugzilla/BugzillaNoteAddin.cs	Sun Mar  2 19:20:59 2008
@@ -13,15 +13,8 @@
 {
 	public class BugzillaNoteAddin : NoteAddin
 	{
-		static int last_bug;
-
 		public const string BugzillaLinkTagName = "link:bugzilla";
 
-		static BugzillaNoteAddin ()
-		{
-			last_bug = -1;
-		}
-
 		public override void Initialize ()
 		{
 			if (!Note.TagTable.IsDynamicTagRegistered (BugzillaLinkTagName)) {
@@ -78,13 +71,6 @@
 		bool InsertBug (int x, int y, string uri, int id)
 		{
 			try {
-				// Debounce.  I'm not sure why this is necessary :(
-				if (id == last_bug) {
-					last_bug = -1;
-					return true;
-				}
-				last_bug = id;
-
 				BugzillaLink link_tag = (BugzillaLink)
 				                        Note.TagTable.CreateDynamicTag (BugzillaLinkTagName);
 				link_tag.BugUrl = uri;
@@ -107,4 +93,4 @@
 		}
 	}
 }
-}
\ No newline at end of file
+}



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