Mercurial > hg > easyhg
diff 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 |
line wrap: on
line diff
--- a/src/mainwindow.cpp Thu Nov 17 17:35:02 2011 +0000 +++ b/src/mainwindow.cpp Thu Nov 17 17:38:18 2011 +0000 @@ -1336,9 +1336,8 @@ if (hgrc.exists()) { QSettings s(hgrc.canonicalFilePath(), QSettings::IniFormat); s.beginGroup("web"); - if (s.contains("port")) { - port = s.value("port").toInt(); - } + int p = s.value("port").toInt(); + if (p) port = p; } QTextStream ts(&msg);