mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-13 20:09:59 +00:00
Work-around for bug #6034: Applying preferences confuses window about its size.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30897 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
89e7f60e1d
commit
a43e6129eb
@ -387,8 +387,12 @@ bool GuiView::restoreLayout()
|
||||
resize(size);
|
||||
move(pos);
|
||||
#else
|
||||
if (!restoreGeometry(settings.value("geometry").toByteArray()))
|
||||
setGeometry(50, 50, 690, 510);
|
||||
// Work-around for bug #6034: the window ends up in an undetermined
|
||||
// state when trying to restore a maximized window when it is
|
||||
// already maximized.
|
||||
if (!(windowState() & Qt::WindowMaximized))
|
||||
if (!restoreGeometry(settings.value("geometry").toByteArray()))
|
||||
setGeometry(50, 50, 690, 510);
|
||||
#endif
|
||||
// Make sure layout is correctly oriented.
|
||||
setLayoutDirection(qApp->layoutDirection());
|
||||
|
Loading…
x
Reference in New Issue
Block a user