Don't assign minimum size if dialog would overflow

This gets a little bit too small and with "Consider window frame size
within centerWidgetAvoidingOverflow()" in qtutilities it shouldn't be
required anymore.
This commit is contained in:
Martchus 2021-03-24 21:26:15 +01:00
parent 832fec0ffe
commit 3fb621875c
1 changed files with 0 additions and 2 deletions

View File

@ -819,8 +819,6 @@ void TrayWidget::showDialog(QWidget *dlg, bool maximized)
}
if (maximized) {
// assign the minimum size so when the window is "de-maximized" again it doesn't overflow again and is not misplaced
dlg->resize(dlg->minimumSize());
centerWidget(dlg);
dlg->showMaximized();
} else {
dlg->show();