banning bug fixed
This commit is contained in:
parent
15ca28bf37
commit
7cd4cef9d3
1 changed files with 2 additions and 1 deletions
|
@ -217,7 +217,8 @@ void UserList::showContextMenu(const QPoint &pos, const QModelIndex &index)
|
|||
else if (actionClicked == aBan) {
|
||||
bool ok;
|
||||
int minutes = QInputDialog::getInt(this, tr("Duration"), tr("Please enter the duration of the ban (in minutes).\nEnter 0 for an indefinite ban."), 0, 0, 2147483647, 10, &ok);
|
||||
client->sendCommand(new Command_BanFromServer(userName, minutes));
|
||||
if (ok)
|
||||
client->sendCommand(new Command_BanFromServer(userName, minutes));
|
||||
}
|
||||
|
||||
delete menu;
|
||||
|
|
Loading…
Reference in a new issue