Browse Source

Save serverlist with the hostname.

Mihawk 10 năm trước cách đây
mục cha
commit
990a1a459d
2 tập tin đã thay đổi với 2 bổ sung3 xóa
  1. 0 1
      ActiveClient.cpp
  2. 2 2
      App.cpp

+ 0 - 1
ActiveClient.cpp

@@ -19,7 +19,6 @@ along with this program.  If not, see < http://www.gnu.org/licenses/ >.
 
 #include <QTimer>
 #include <QTime>
-#include <QHostInfo>
 
 #include "ServerQuery.h"
 #include "ActiveClient.h"

+ 2 - 2
App.cpp

@@ -150,8 +150,8 @@ void App::saveServerList()
   foreach(ac, myClients)
   {
     Settings::Server sv;
-    sv.address = ac->serverAddressString().split(":").at(0);
-    sv.port = ac->serverAddressString().split(":").at(1).toUShort();
+    sv.address = ac->serverHostNameString().split(":").at(0);
+    sv.port = ac->serverHostNameString().split(":").at(1).toUShort();
     list.push_back(sv);
   }
   Settings::globalInstance()->setServerList(list);