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:
parent
832fec0ffe
commit
3fb621875c
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue