[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mono-patches
Subject:    [Mono-patches] [mono/monodevelop] 972377bb: Bug 15837 - Choosing to 'Revert to this revision' or 'Re
From:       "Therzok (teromario () yahoo ! com)" <mono-patches () lists ! ximian ! com>
Date:       2013-10-31 14:58:14
Message-ID: 000001420f05992c-9021bd02-974f-4b9e-b22e-29210e4562fc-000000 () email ! amazonses ! com
[Download RAW message or body]


   Branch: refs/heads/master
     Home: https://github.com/mono/monodevelop
  Compare: https://github.com/mono/monodevelop/compare/698fdcfb5ee8...972377bb64a5

   Commit: 972377bb64a542c03fb1d9a1e392fb1c7135998f
   Author: Therzok <teromario@yahoo.com> (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  -  Mono-patches@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-patches


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic