diff options
author | Simon Rettberg | 2016-10-28 19:30:55 +0200 |
---|---|---|
committer | Simon Rettberg | 2016-10-28 19:30:55 +0200 |
commit | 3b08d0e43f371af22d1a594eae6ae51f24c0d9ce (patch) | |
tree | c124588bffe0ad3056bdb634a638d0fe3144f5d9 /src/client/clientapp/clientapp.cpp | |
parent | [client] Disable "quit on last window closed" as it triggers in exam mode (diff) | |
download | pvs2-3b08d0e43f371af22d1a594eae6ae51f24c0d9ce.tar.gz pvs2-3b08d0e43f371af22d1a594eae6ae51f24c0d9ce.tar.xz pvs2-3b08d0e43f371af22d1a594eae6ae51f24c0d9ce.zip |
[client] Fix use-after-free by adding missing signal-slot-connection
Diffstat (limited to 'src/client/clientapp/clientapp.cpp')
-rw-r--r-- | src/client/clientapp/clientapp.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/clientapp/clientapp.cpp b/src/client/clientapp/clientapp.cpp index d3f0eb4..911f223 100644 --- a/src/client/clientapp/clientapp.cpp +++ b/src/client/clientapp/clientapp.cpp @@ -112,6 +112,7 @@ void ClientApp::readIsManagerPc() void ClientApp::connected(ServerConnection* connection) { _connection = connection; + connect(connection, SIGNAL(disconnected(ServerConnection*)), this, SLOT(disconnected(ServerConnection*))); } void ClientApp::disconnected(ServerConnection* connection) |