diff options
author | Christian Klinger | 2016-05-09 17:13:28 +0200 |
---|---|---|
committer | Christian Klinger | 2016-05-09 17:13:28 +0200 |
commit | 9a0c6ef6200effc6e933d8b3515938f42318dcb7 (patch) | |
tree | 56829e121bd909f6fe78fd5d87d5fe6f38362571 /src/client/connectwindow/connectwindow.cpp | |
parent | upgraded from SSLv3 to TLS1.0 (diff) | |
download | pvs2-9a0c6ef6200effc6e933d8b3515938f42318dcb7.tar.gz pvs2-9a0c6ef6200effc6e933d8b3515938f42318dcb7.tar.xz pvs2-9a0c6ef6200effc6e933d8b3515938f42318dcb7.zip |
added "Disconnect"-Button (closes #2764).
Diffstat (limited to 'src/client/connectwindow/connectwindow.cpp')
-rw-r--r-- | src/client/connectwindow/connectwindow.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/client/connectwindow/connectwindow.cpp b/src/client/connectwindow/connectwindow.cpp index 6fd92e6..818cbd2 100644 --- a/src/client/connectwindow/connectwindow.cpp +++ b/src/client/connectwindow/connectwindow.cpp @@ -40,6 +40,7 @@ ConnectWindow::ConnectWindow(QWidget *parent) : QWidget(parent) // Set actions of buttons connect(_ui->btn_connection, SIGNAL(clicked()), this, SLOT(onBtnConnection())); connect(_ui->btn_hide, SIGNAL(clicked()), this, SLOT(onBtnHide())); + connect(_ui->btn_advanced, SIGNAL(clicked()), this, SLOT(onBtnAdvanced())); // React on discovery signal connect(&_serverDiscovery, SIGNAL(serverDetected(QString,quint16,QByteArray,QByteArray,bool)), @@ -291,3 +292,10 @@ void ConnectWindow::onConnectionDisconnected() connectToSession(_currentSession, _currentIp); } } +void ConnectWindow::onBtnAdvanced() { + if (_ui->stackedWidget->currentIndex()== 1) { + _ui->stackedWidget->setCurrentIndex(0); + } else { + _ui->stackedWidget->setCurrentIndex(1); + } +} |