mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-31 07:45:44 +00:00
Added check for valid size to show().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17709 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
9aed8cf115
commit
bb2afff7d0
@ -50,7 +50,9 @@ void QDialogView::show()
|
||||
build();
|
||||
}
|
||||
|
||||
form()->setMinimumSize(form()->sizeHint());
|
||||
QSize sizeHint = form()->sizeHint();
|
||||
if (sizeHint.height() >= 0 && sizeHint.width() >= 0)
|
||||
form()->setMinimumSize(sizeHint);
|
||||
|
||||
update(); // make sure its up-to-date
|
||||
if (dialog().controller().exitEarly())
|
||||
|
Loading…
Reference in New Issue
Block a user