summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2016-10-28 19:30:55 +0200
committerSimon Rettberg2016-10-28 19:30:55 +0200
commit3b08d0e43f371af22d1a594eae6ae51f24c0d9ce (patch)
treec124588bffe0ad3056bdb634a638d0fe3144f5d9
parent[client] Disable "quit on last window closed" as it triggers in exam mode (diff)
downloadpvs2-3b08d0e43f371af22d1a594eae6ae51f24c0d9ce.tar.gz
pvs2-3b08d0e43f371af22d1a594eae6ae51f24c0d9ce.tar.xz
pvs2-3b08d0e43f371af22d1a594eae6ae51f24c0d9ce.zip
[client] Fix use-after-free by adding missing signal-slot-connection
-rw-r--r--src/client/clientapp/clientapp.cpp1
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)