changeset 527:49bddabad719

Fix to prior commit
author Chris Cannam
date Thu, 17 Nov 2011 17:38:18 +0000
parents b80d28f2f456
children 4c2caf8926a2
files src/mainwindow.cpp
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
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);