comparison hgrunner.cpp @ 77:b522aaa2c053

* Further minor win32 fix
author Chris Cannam
date Sat, 20 Nov 2010 11:40:19 +0000
parents d575a8f76a53
children 32fa40c3d174
comparison
equal deleted inserted replaced
76:d575a8f76a53 77:b522aaa2c053
88 } 88 }
89 89
90 QString HgRunner::getHgBinaryName() 90 QString HgRunner::getHgBinaryName()
91 { 91 {
92 QSettings settings; 92 QSettings settings;
93 QString hg = settings.value("hgbinary", "hg").toString(); 93 QString hg = settings.value("hgbinary", "").toString();
94 if (hg == "") hg = "hg"; 94 if (hg == "") {
95 hg = findExecutable(hg); 95 hg = findExecutable("hg");
96 settings.setValue("hgbinary", hg); 96 }
97 if (hg != "hg") {
98 settings.setValue("hgbinary", hg);
99 }
97 return hg; 100 return hg;
98 } 101 }
99 102
100 void HgRunner::started() 103 void HgRunner::started()
101 { 104 {