Mercurial > hg > easyhg
diff src/settingsdialog.cpp @ 611:864cf6bc6eff
Fix incorrect signal in recent files action; if hg not found in last location, check for it in path (e.g. if it was previously in an installation-specific location that has since been overridden by a new installation)
author | Chris Cannam |
---|---|
date | Tue, 03 Jul 2012 15:26:30 +0100 |
parents | 533519ebc0cb |
children | 2d5b831c1a0a |
line wrap: on
line diff
--- a/src/settingsdialog.cpp Tue Jul 03 13:25:54 2012 +0100 +++ b/src/settingsdialog.cpp Tue Jul 03 15:26:30 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 != "") {