diff src/settingsdialog.cpp @ 619:4f7ca2d192df

Merge
author Chris Cannam
date Tue, 03 Jul 2012 20:10:04 +0100
parents 864cf6bc6eff
children 2d5b831c1a0a
line wrap: on
line diff
--- a/src/settingsdialog.cpp	Tue Jul 03 20:09:46 2012 +0100
+++ b/src/settingsdialog.cpp	Tue Jul 03 20:10:04 2012 +0100
@@ -268,7 +268,7 @@
     QSettings settings;
     settings.beginGroup("Locations");
     QString hg = settings.value("hgbinary", "").toString();
-    if (hg == "") {
+    if (hg == "" || !QFile(hg).exists()) {
         hg = findInPath("hg", m_installPath, true);
     }
     if (hg != "") {