Mercurial > hg > easyhg
diff hgrunner.cpp @ 77:b522aaa2c053
* Further minor win32 fix
author | Chris Cannam |
---|---|
date | Sat, 20 Nov 2010 11:40:19 +0000 |
parents | d575a8f76a53 |
children | 32fa40c3d174 |
line wrap: on
line diff
--- a/hgrunner.cpp Sat Nov 20 10:11:00 2010 +0000 +++ b/hgrunner.cpp Sat Nov 20 11:40:19 2010 +0000 @@ -90,10 +90,13 @@ QString HgRunner::getHgBinaryName() { QSettings settings; - QString hg = settings.value("hgbinary", "hg").toString(); - if (hg == "") hg = "hg"; - hg = findExecutable(hg); - settings.setValue("hgbinary", hg); + QString hg = settings.value("hgbinary", "").toString(); + if (hg == "") { + hg = findExecutable("hg"); + } + if (hg != "hg") { + settings.setValue("hgbinary", hg); + } return hg; }