comparison src/settingsdialog.cpp @ 619:4f7ca2d192df

Merge
author Chris Cannam
date Tue, 03 Jul 2012 20:10:04 +0100
parents 864cf6bc6eff
children 2d5b831c1a0a
comparison
equal deleted inserted replaced
618:54ca6a0e9aef 619:4f7ca2d192df
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 }