diff options
author | Björn Hagemeister | 2014-09-05 15:15:03 +0200 |
---|---|---|
committer | Björn Hagemeister | 2014-09-05 15:15:03 +0200 |
commit | caf6da9f6cdf7f755aeb441c7b3670750d60ae15 (patch) | |
tree | ff91c0768be72cdbbc5746fe515b6d6b8d47c61e /src/server/mainwindow/mainwindow.cpp | |
parent | The sessionID is ignored by manager if client is connecting via auto-connect. (diff) | |
download | pvs2-caf6da9f6cdf7f755aeb441c7b3670750d60ae15.tar.gz pvs2-caf6da9f6cdf7f755aeb441c7b3670750d60ae15.tar.xz pvs2-caf6da9f6cdf7f755aeb441c7b3670750d60ae15.zip |
Fixed segfault occuring after not choosing a room for reload room configuration.
Diffstat (limited to 'src/server/mainwindow/mainwindow.cpp')
-rw-r--r-- | src/server/mainwindow/mainwindow.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/server/mainwindow/mainwindow.cpp b/src/server/mainwindow/mainwindow.cpp index c9eaf32..d34a60b 100644 --- a/src/server/mainwindow/mainwindow.cpp +++ b/src/server/mainwindow/mainwindow.cpp @@ -717,6 +717,11 @@ void MainWindow::onReloadRoomCancel() void MainWindow::onReloadRoomOk() { + if (_reloadWindow->ui->roomList->currentItem() == NULL) + { + QMessageBox::critical(this, "Warning", tr("No Item selected, please select Item!"), 0, 1); + return; + } int ret = QMessageBox::QMessageBox::question(this, "Warning", tr("Are you sure you want to reload the room?\n" "Note that all clients will be deleted."), 0, 1, 2); |