From caf6da9f6cdf7f755aeb441c7b3670750d60ae15 Mon Sep 17 00:00:00 2001 From: Björn Hagemeister Date: Fri, 5 Sep 2014 15:15:03 +0200 Subject: Fixed segfault occuring after not choosing a room for reload room configuration. --- src/server/mainwindow/mainwindow.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/server/mainwindow/mainwindow.cpp') 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); -- cgit v1.2.3-55-g7522