From 97591bcbd5d354b0732719eb130c18e4496657f3 Mon Sep 17 00:00:00 2001 From: Manuel Schneider Date: Fri, 28 Nov 2014 11:24:46 +0100 Subject: Change confusing membername --- src/client/connectwindow/connectwindow.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/client/connectwindow/connectwindow.cpp') 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); } -- cgit v1.2.3-55-g7522