[longomatch] Set the home dir properly



commit 6871e4066985b7ac796ca9ca11cc0ab85d92efba
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Sun Dec 11 23:36:11 2011 +0100

    Set the home dir properly

 LongoMatch.GUI/Gui/Dialog/ProjectsManager.cs |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Dialog/ProjectsManager.cs b/LongoMatch.GUI/Gui/Dialog/ProjectsManager.cs
index 294fdaf..cc62fe4 100644
--- a/LongoMatch.GUI/Gui/Dialog/ProjectsManager.cs
+++ b/LongoMatch.GUI/Gui/Dialog/ProjectsManager.cs
@@ -37,7 +37,6 @@ namespace LongoMatch.Gui.Dialog
 		Project openedProject;
 		List<ProjectDescription> selectedProjects;
 		IDatabase DB;
-		string homeDir = null;
 
 		public ProjectsManager(Project openedProject, IDatabase DB, ITemplatesService ts)
 		{
@@ -188,7 +187,7 @@ namespace LongoMatch.Gui.Dialog
 			                FileChooserAction.Save,
 			                "gtk-cancel",ResponseType.Cancel,
 			                "gtk-save",ResponseType.Accept);
-			fChooser.SetCurrentFolder(homeDir);
+			fChooser.SetCurrentFolder(Config.HomeDir());
 			FileFilter filter = new FileFilter();
 			filter.Name = Constants.PROJECT_NAME;
 			filter.AddPattern("*.lpr");



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