summaryrefslogtreecommitdiffstats
path: root/src/server/mainwindow/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/mainwindow/mainwindow.cpp')
-rw-r--r--src/server/mainwindow/mainwindow.cpp5
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);