[longomatch] Make buttons unsensitive after each update, when no category is selected



commit aee6e13690aa4597c455c119f5f9269df8d5f445
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Wed Sep 16 19:08:08 2009 +0200

    Make buttons unsensitive after each update, when no category is selected

 LongoMatch/Gui/Component/ProjectTemplateWidget.cs |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/LongoMatch/Gui/Component/ProjectTemplateWidget.cs b/LongoMatch/Gui/Component/ProjectTemplateWidget.cs
index d4e1d9e..67663ef 100644
--- a/LongoMatch/Gui/Component/ProjectTemplateWidget.cs
+++ b/LongoMatch/Gui/Component/ProjectTemplateWidget.cs
@@ -48,8 +48,8 @@ namespace LongoMatch.Gui.Component
 		
 		public void SetProject(Project project){
 			this.project = project;
-			Sections=project.Sections;
-		}	
+			Sections=project.Sections;			
+		}			
 		
 		public Sections Sections{
 			get{return sections;}
@@ -65,6 +65,7 @@ namespace LongoMatch.Gui.Component
 					}catch{}; //Do not add duplicated hotkeys
 				}
 				sectionstreeview1.Model = sectionsListStore;
+				ButtonsSensitive = false;
 			}
 		}
 		



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