diff --git a/client/roomlistdock.cpp b/client/roomlistdock.cpp index bbcec39d3..7e73d3564 100644 --- a/client/roomlistdock.cpp +++ b/client/roomlistdock.cpp @@ -23,6 +23,7 @@ #include #include #include +#include #include "models/roomlistmodel.h" #include "quaternionroom.h" @@ -181,8 +182,16 @@ void RoomListDock::menuLeaveSelected() void RoomListDock::menuForgetSelected() { - if (auto room = getSelectedRoom()) - room->connection()->forgetRoom(room->id()); + if (auto room = getSelectedRoom()) { + QMessageBox confirmBox(QMessageBox::Question, + tr("Are you sure?"), + tr("Do you want to forget the room %1").arg(room->displayName()), + QMessageBox::Yes|QMessageBox::No, this); + if (confirmBox.exec() == QMessageBox::No) + ; + else + room->connection()->forgetRoom(room->id()); + } } void RoomListDock::menuMarkReadSelected()