Enable ban and kick button in UserProfile (and try to fix centering)

This commit is contained in:
Nicolas Werner 2020-01-30 03:45:27 +01:00
parent a07e699811
commit b541cecd2e
4 changed files with 97 additions and 90 deletions

View file

@ -613,7 +613,8 @@ utils::centerWidget(QWidget *widget, QWidget *parent)
};
if (parent) {
widget->move(findCenter(parent->geometry()));
widget->move(parent->window()->frameGeometry().topLeft() +
parent->window()->rect().center() - widget->rect().center());
return;
}