diff options
author | Björn Hagemeister | 2014-05-13 16:46:28 +0200 |
---|---|---|
committer | Björn Hagemeister | 2014-05-13 16:46:28 +0200 |
commit | 21c794780d01855ecffa2cf40dc5d5e4d6352038 (patch) | |
tree | e716f7c6017bdba9fb320d23ea3e43543167484e /src/server/mainwindow/mainwindow.cpp | |
parent | Configured not locking the screen, if manager and client working on same mach... (diff) | |
download | pvs2-21c794780d01855ecffa2cf40dc5d5e4d6352038.tar.gz pvs2-21c794780d01855ecffa2cf40dc5d5e4d6352038.tar.xz pvs2-21c794780d01855ecffa2cf40dc5d5e4d6352038.zip |
Fix segmentation fault after looking all screens and there is one client disconnected.
Diffstat (limited to 'src/server/mainwindow/mainwindow.cpp')
-rw-r--r-- | src/server/mainwindow/mainwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/mainwindow/mainwindow.cpp b/src/server/mainwindow/mainwindow.cpp index 00e4eb0..47f9610 100644 --- a/src/server/mainwindow/mainwindow.cpp +++ b/src/server/mainwindow/mainwindow.cpp @@ -737,7 +737,7 @@ void MainWindow::onButtonLock(bool checked) // Check if client is Tutor or the manager is also running on this machine. bool isManagerMachine = false; foreach (const QHostAddress &address, QNetworkInterface::allAddresses()) { - if (address != QHostAddress(QHostAddress::LocalHost) && c->ip() == address.toString()) + if (address != QHostAddress(QHostAddress::LocalHost) && c != NULL && c->ip() == address.toString()) isManagerMachine = true; } |