Mercurial > hg > easyhg
comparison 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 |
comparison
equal
deleted
inserted
replaced
610:90da5af6a952 | 611:864cf6bc6eff |
---|---|
266 SettingsDialog::findHgBinaryName() | 266 SettingsDialog::findHgBinaryName() |
267 { | 267 { |
268 QSettings settings; | 268 QSettings settings; |
269 settings.beginGroup("Locations"); | 269 settings.beginGroup("Locations"); |
270 QString hg = settings.value("hgbinary", "").toString(); | 270 QString hg = settings.value("hgbinary", "").toString(); |
271 if (hg == "") { | 271 if (hg == "" || !QFile(hg).exists()) { |
272 hg = findInPath("hg", m_installPath, true); | 272 hg = findInPath("hg", m_installPath, true); |
273 } | 273 } |
274 if (hg != "") { | 274 if (hg != "") { |
275 settings.setValue("hgbinary", hg); | 275 settings.setValue("hgbinary", hg); |
276 } | 276 } |