Mercurial > hg > easyhg
diff hgrunner.cpp @ 175:6def8bf3be44
* Start implementing Settings dialog; add Test function to run on startup to make sure hg works
author | Chris Cannam |
---|---|
date | Thu, 16 Dec 2010 17:32:25 +0000 |
parents | b6dd1ee0e486 |
children | a6ec8d0bdd34 |
line wrap: on
line diff
--- a/hgrunner.cpp Thu Dec 16 12:40:04 2010 +0000 +++ b/hgrunner.cpp Thu Dec 16 17:32:25 2010 +0000 @@ -50,6 +50,7 @@ m_isRunning = false; findExtension(); + (void)getHgBinaryName(); } HgRunner::~HgRunner() @@ -118,6 +119,7 @@ QString HgRunner::getHgBinaryName() { QSettings settings; + settings.beginGroup("Locations"); QString hg = settings.value("hgbinary", "").toString(); if (hg == "") { hg = findInPath("hg", m_myDirPath, true);