Begin tidying up settings refactoring.
[vlc-remote] / src / playermainwindow.cpp
index 6ad1541..9e5363b 100644 (file)
       // check for network
       if (AppSettings::isConnected()) {
           QSettings settings;
-          QString last_ip = AccountDialog::currentIp();
+          QString last_ip = AppSettings::getCurrentIp(); // AccountDialog::currentIp();
           if (!last_ip.isNull() && !last_ip.isEmpty()) {
               QTcpSocket * socket = new QTcpSocket;
               if(last_ip.contains(":"))
           AccountDialog * dialog = new AccountDialog(this);
           dialog->exec();
 
-           mIp= AccountDialog::currentIp();
+          mIp= AppSettings::getCurrentIp(); //AccountDialog::currentIp();
 
           mPlayListMainWindow->init();
           mBrowserMainWindow->init();