浏览代码

Settings file auto adjustment to new version

Mihawk 12 年之前
父节点
当前提交
1e8e326c1a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Settings.cpp

+ 1 - 1
Settings.cpp

@@ -75,7 +75,7 @@ Settings::ServerList Settings::serverList()
     ourSettings->setArrayIndex(i);
     QStringList svaddr = ourSettings->value("address").toString().split(":");
     Server sv;
-    if(svaddr.size() == 2)
+    if(svaddr.size() >= 2)
     {
       sv.address = svaddr.at(0);
       sv.port = svaddr.at(1).toUShort();