[mono/monodevelop] 972377bb: Bug 15837 - Choosing to 'Revert to this revision' or 'Revert changes from this revision' with no revision selected causes an NRE and a TIE

"Therzok ([email protected])" <[email protected]>
Newsgroups gmane.comp.gnome.mono.patches
Message-ID <000001420f05992c-9021bd02-974f-4b9e-b22e-29210e4562fc-000000@email.amazonses.com>
   Branch: refs/heads/master
     Home: https://github.com/mono/monodevelop
  Compare: https://github.com/mono/monodevelop/compare/698fdcfb5ee8...972377bb64a5

   Commit: 972377bb64a542c03fb1d9a1e392fb1c7135998f
   Author: Therzok <[email protected]> (Therzok)
     Date: 2013-10-31 14:56:17 GMT
      URL: https://github.com/mono/monodevelop/commit/972377bb64a542c03fb1d9a1e392fb1c7135998f

Bug 15837 - Choosing to 'Revert to this revision' or 'Revert changes from this revision' with no revision selected causes an NRE and a TIE

Changed paths:
  M main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl.Views/LogWidget.cs

Modified: main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl.Views/LogWidget.cs
===================================================================
@@ -124,15 +124,14 @@ public LogWidget (VersionControlDocumentInfo info)
 			vpaned1 = vpaned1.ReplaceWithWidget (new VPanedThin () { HandleWidget = separator }, true);
 
 			revertButton = new DocumentToolButton ("vc-revert-command", GettextCatalog.GetString ("Revert changes from this revision"));
-//			revertButton.Sensitive = false;
+			revertButton.Sensitive = false;
 			revertButton.Clicked += new EventHandler (RevertRevisionClicked);
 
 			revertToButton = new DocumentToolButton ("vc-revert-command", GettextCatalog.GetString ("Revert to this revision"));
-//			revertToButton.Sensitive = false;
+			revertToButton.Sensitive = false;
 			revertToButton.Clicked += new EventHandler (RevertToRevisionClicked);
 
 			refreshButton = new DocumentToolButton (Gtk.Stock.Refresh, GettextCatalog.GetString ("Refresh"));
-//			refreshButton.Sensitive = false;
 			refreshButton.Clicked += new EventHandler (RefreshClicked);
 
 			searchEntry = new SearchEntry ();
@@ -596,6 +595,8 @@ void TreeSelectionChanged (object o, EventArgs args)
 			
 			if (d == null)
 				return;
+
+			revertButton.Sensitive = revertToButton.Sensitive = true;
 			Gtk.TreeIter selectIter = Gtk.TreeIter.Zero;
 			bool select = false;
 			foreach (RevisionPath rp in info.Repository.GetRevisionChanges (d)) {


_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.