[longomatch] Use a constant for exported projects



commit 12408ba932c0ad60f8f25f813ed5914702b42281
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Tue Dec 20 00:45:13 2011 +0100

    Use a constant for exported projects

 LongoMatch.Core/Common/Constants.cs          |    1 +
 LongoMatch.GUI/Gui/Dialog/ProjectsManager.cs |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch.Core/Common/Constants.cs b/LongoMatch.Core/Common/Constants.cs
index b8905ac..d817e94 100644
--- a/LongoMatch.Core/Common/Constants.cs
+++ b/LongoMatch.Core/Common/Constants.cs
@@ -98,5 +98,6 @@ Xavier Queralt Mateu (ca)";
 		public const string CAT_TEMPLATE_EXT = ".lct";
 		public const string SUBCAT_TEMPLATE_EXT = ".lst";
 		public const string PLAYLIST_EXT = ".lpl";
+		public const string PROJECT_EXT = ".lgm";
 	}
 }
diff --git a/LongoMatch.GUI/Gui/Dialog/ProjectsManager.cs b/LongoMatch.GUI/Gui/Dialog/ProjectsManager.cs
index cc62fe4..6ae5d5e 100644
--- a/LongoMatch.GUI/Gui/Dialog/ProjectsManager.cs
+++ b/LongoMatch.GUI/Gui/Dialog/ProjectsManager.cs
@@ -190,7 +190,7 @@ namespace LongoMatch.Gui.Dialog
 			fChooser.SetCurrentFolder(Config.HomeDir());
 			FileFilter filter = new FileFilter();
 			filter.Name = Constants.PROJECT_NAME;
-			filter.AddPattern("*.lpr");
+			filter.AddPattern(Constants.PROJECT_EXT);
 
 			fChooser.AddFilter(filter);
 			if(fChooser.Run() == (int)ResponseType.Accept) {



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