tomboy r1750 - in trunk: . Tomboy/Notebooks



Author: btimothy
Date: Tue Jan  8 00:07:37 2008
New Revision: 1750
URL: http://svn.gnome.org/viewvc/tomboy?rev=1750&view=rev

Log:
2008-01-07  Boyd Timothy <btimothy gmail com> 

        * Tomboy/Notebooks/NotebookNoteAddin.cs: Only disable the
          delete button if the note is a Notebook Template Note.



Modified:
   trunk/ChangeLog
   trunk/Tomboy/Notebooks/NotebookNoteAddin.cs

Modified: trunk/Tomboy/Notebooks/NotebookNoteAddin.cs
==============================================================================
--- trunk/Tomboy/Notebooks/NotebookNoteAddin.cs	(original)
+++ trunk/Tomboy/Notebooks/NotebookNoteAddin.cs	Tue Jan  8 00:07:37 2008
@@ -162,12 +162,13 @@
 		{
 			// Disable the notebook button if this note is a template note
 			Tag templateTag = TagManager.GetOrCreateSystemTag (TagManager.TemplateNoteSystemTag);
-			if (Note.ContainsTag (templateTag) == true)
+			if (Note.ContainsTag (templateTag) == true) {
 				toolButton.Sensitive = false;
 			
-			// Also prevent notebook templates from being deleted
-			if (NotebookManager.GetNotebookFromNote (Note) != null)
-				Note.Window.DeleteButton.Sensitive = false;
+				// Also prevent notebook templates from being deleted
+				if (NotebookManager.GetNotebookFromNote (Note) != null)
+					Note.Window.DeleteButton.Sensitive = false;
+			}
 		}
 	}
 }



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