comparison 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
comparison
equal deleted inserted replaced
174:4dc802a4d5ae 175:6def8bf3be44
48 setTextVisible(false); 48 setTextVisible(false);
49 setVisible(false); 49 setVisible(false);
50 m_isRunning = false; 50 m_isRunning = false;
51 51
52 findExtension(); 52 findExtension();
53 (void)getHgBinaryName();
53 } 54 }
54 55
55 HgRunner::~HgRunner() 56 HgRunner::~HgRunner()
56 { 57 {
57 closeTerminal(); 58 closeTerminal();
116 } 117 }
117 118
118 QString HgRunner::getHgBinaryName() 119 QString HgRunner::getHgBinaryName()
119 { 120 {
120 QSettings settings; 121 QSettings settings;
122 settings.beginGroup("Locations");
121 QString hg = settings.value("hgbinary", "").toString(); 123 QString hg = settings.value("hgbinary", "").toString();
122 if (hg == "") { 124 if (hg == "") {
123 hg = findInPath("hg", m_myDirPath, true); 125 hg = findInPath("hg", m_myDirPath, true);
124 } 126 }
125 if (hg != "hg") { 127 if (hg != "hg") {