Browse Source

Settings file auto adjustment to new version

Mihawk 12 years ago
parent
commit
1e8e326c1a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Settings.cpp

+ 1 - 1
Settings.cpp

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