Selaa lähdekoodia

Save serverlist with the hostname.

Mihawk 10 vuotta sitten
vanhempi
commit
990a1a459d
2 muutettua tiedostoa jossa 2 lisäystä ja 3 poistoa
  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);