diff options
author | Manuel Schneider | 2014-11-28 11:24:46 +0100 |
---|---|---|
committer | Manuel Schneider | 2014-11-28 11:24:46 +0100 |
commit | 97591bcbd5d354b0732719eb130c18e4496657f3 (patch) | |
tree | 5d6d1adde5c352fda242bbeb0e36ec8713a4dcf0 /src/client/connectwindow/connectwindow.cpp | |
parent | Added reload room icon to help menu. (diff) | |
download | pvs2-97591bcbd5d354b0732719eb130c18e4496657f3.tar.gz pvs2-97591bcbd5d354b0732719eb130c18e4496657f3.tar.xz pvs2-97591bcbd5d354b0732719eb130c18e4496657f3.zip |
Change confusing membername
Diffstat (limited to 'src/client/connectwindow/connectwindow.cpp')
-rw-r--r-- | src/client/connectwindow/connectwindow.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/client/connectwindow/connectwindow.cpp b/src/client/connectwindow/connectwindow.cpp index 90cba27..4a57532 100644 --- a/src/client/connectwindow/connectwindow.cpp +++ b/src/client/connectwindow/connectwindow.cpp @@ -46,7 +46,7 @@ ConnectWindow::ConnectWindow(QWidget *parent) : QWidget(parent) connect(&_serverDiscovery, SIGNAL(serverDetected(QString,quint16,QByteArray,QByteArray)), this, SLOT(onServerDetected(QString,quint16,QByteArray,QByteArray))); - this->updateState(); + this->updateUserInterface(); } /***************************************************************************//** @@ -60,7 +60,7 @@ ConnectWindow::~ConnectWindow(){} * Handle changes in state and update window. * Also changing TextLabel which shows the user what the program is doing. */ -void ConnectWindow::updateState() +void ConnectWindow::updateUserInterface() { _ui->lineEditName->setEnabled(_state == Idle && !_connected); @@ -163,7 +163,7 @@ void ConnectWindow::connectToSession(const QByteArray sessionName, QString mgrIP if (_connected || _state != Idle) return; _state = Scanning; - this->updateState(); + this->updateUserInterface(); _serverDiscovery.start(sessionName, mgrIP); } @@ -193,7 +193,7 @@ void ConnectWindow::onBtnConnection() // Stop or disconnect emit disconnect(); _state = Idle; - this->updateState(); + this->updateUserInterface(); } else { @@ -242,7 +242,7 @@ void ConnectWindow::onConnectionStateChange(ConnectWindow::ConnectionState state ++_hashSslErrorCount; _state = state; - this->updateState(); + this->updateUserInterface(); if (reset) { qDebug() << "RESET!!"<< state; @@ -255,7 +255,7 @@ void ConnectWindow::onConnectionStateChange(ConnectWindow::ConnectionState state emit connected(_connection); _connected = true; - this->updateState(); + this->updateUserInterface(); _connection = NULL; _timerHide = startTimer(2000); @@ -278,7 +278,7 @@ void ConnectWindow::onConnectionDisconnected() { _connected = false; _state = Idle; - this->updateState(); + this->updateUserInterface(); if (_tryReconnect) connectToSession(_ui->lineEditName->text().toUtf8(), NULL); } |