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:
Richard Heck 2007-04-03 20:45:46 +00:00
parent 9aed8cf115
commit bb2afff7d0

View File

@ -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())