changeset 9:e376d572b0c4

Version 0.4.1: Checks that local path ends with path separator.
author Jari Korhonen <jtkorhonen@gmail.com>
date Fri, 14 May 2010 16:09:41 +0300
parents c560c3a27745
children efb7b1654af4
files common.h settingsdialog.cpp
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/common.h	Fri May 14 15:34:27 2010 +0300
+++ b/common.h	Fri May 14 16:09:41 2010 +0300
@@ -6,7 +6,7 @@
 #include <QtCore>
 
 #define APPNAME                         "HgExplorer"
-#define APPVERSION                      "0.4.0"
+#define APPVERSION                      "0.4.1"
 #define MY_ICON_SIZE                    32
 #define REPOMENU_TITLE                  "Repository actions"
 #define WORKFOLDERMENU_TITLE            "Workfolder actions"
--- a/settingsdialog.cpp	Fri May 14 15:34:27 2010 +0300
+++ b/settingsdialog.cpp	Fri May 14 16:09:41 2010 +0300
@@ -70,7 +70,13 @@
     mainWnd -> firstStart = false;
     mainWnd -> userInfo = userInfoLineEdit->text();
     mainWnd -> remoteRepoPath = remoteRepoLineEdit->text();
+
     mainWnd -> workFolderPath = workFolderLineEdit -> text();
+    if (!mainWnd -> workFolderPath.endsWith(QDir::separator()))
+    {
+        mainWnd -> workFolderPath += QDir::separator();
+    }
+
     mainWnd -> writeSettings();
     mainWnd -> enableDisableActions();
     mainWnd -> hgStat();