summaryrefslogtreecommitdiffstats
path: root/src/client/connectwindow/connectwindow.h
diff options
context:
space:
mode:
authorSimon Rettberg2016-10-26 18:31:21 +0200
committerSimon Rettberg2016-10-26 18:31:21 +0200
commite19dcdfed2da5405c714bc0af56927fa8e4c2442 (patch)
treef50f9223c03c2af4e5e3b72b7d69618e0148220a /src/client/connectwindow/connectwindow.h
parentFix GUI translation: Don't create persistent objects on stack :/ (diff)
downloadpvs2-e19dcdfed2da5405c714bc0af56927fa8e4c2442.tar.gz
pvs2-e19dcdfed2da5405c714bc0af56927fa8e4c2442.tar.xz
pvs2-e19dcdfed2da5405c714bc0af56927fa8e4c2442.zip
[client] Move ServerConnection instance to ClientApp
Diffstat (limited to 'src/client/connectwindow/connectwindow.h')
-rw-r--r--src/client/connectwindow/connectwindow.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/connectwindow/connectwindow.h b/src/client/connectwindow/connectwindow.h
index aa89094..53af662 100644
--- a/src/client/connectwindow/connectwindow.h
+++ b/src/client/connectwindow/connectwindow.h
@@ -62,9 +62,9 @@ public:
private:
Ui::ConnectWindow *_ui;
- ServerConnection *_connection;
int _hashSslErrorCount;
ServerDiscovery _serverDiscovery;
+ ServerConnection* _pendingConnection;
ConnectionState _state;
QByteArray _currentSession;
QString _currentIp;
@@ -89,7 +89,7 @@ protected slots:
void onConnectionStateChange(ConnectWindow::ConnectionState state);
void onConnectionClosed(QObject* connection);
- void onConnectionDisconnected();
+ void onConnectionDisconnected(ServerConnection* connection);
// void onUdpReadyRead();
void onServerDetected(const QString& host, const quint16 port, const QByteArray& sessionName, const QByteArray& certHash, bool autoConnect);