comparison src/mainwindow.cpp @ 527:49bddabad719

Fix to prior commit
author Chris Cannam
date Thu, 17 Nov 2011 17:38:18 +0000
parents b80d28f2f456
children 2262f753b19e
comparison
equal deleted inserted replaced
526:b80d28f2f456 527:49bddabad719
1334 QString path; 1334 QString path;
1335 int port = 8000; // the default 1335 int port = 8000; // the default
1336 if (hgrc.exists()) { 1336 if (hgrc.exists()) {
1337 QSettings s(hgrc.canonicalFilePath(), QSettings::IniFormat); 1337 QSettings s(hgrc.canonicalFilePath(), QSettings::IniFormat);
1338 s.beginGroup("web"); 1338 s.beginGroup("web");
1339 if (s.contains("port")) { 1339 int p = s.value("port").toInt();
1340 port = s.value("port").toInt(); 1340 if (p) port = p;
1341 }
1342 } 1341 }
1343 1342
1344 QTextStream ts(&msg); 1343 QTextStream ts(&msg);
1345 ts << QString("<qt><h3>%1</h3><p>%2</p>") 1344 ts << QString("<qt><h3>%1</h3><p>%2</p>")
1346 .arg(tr("Sharing Repository")) 1345 .arg(tr("Sharing Repository"))