Reader: store geometry instead of pos&size in Configuration

Qt documentation recommends calling saveGeometry() in closeEvent().

This commit fixes the following bug on my GNU/Linux with Xfce system:
    1. Move the top of the YACReader window to the top of the screen.
    2. Restart YACReader (exit and run again).
    2. Enter full screen mode.
    4. Restart YACReader.
    5. Exit full screen mode.
At this point YACReader's title bar is hidden beyond the top of the
screen, i.e. the window has moved up.
This commit is contained in:
Igor Kushnir
2019-05-28 15:57:06 +03:00
committed by Luis Ángel San Martín
parent eb9075c917
commit 82719573b5
4 changed files with 7 additions and 19 deletions

View File

@ -35,8 +35,6 @@ void Configuration::load(QSettings *settings)
settings->setValue(FLOW_TYPE, 0);
if (!settings->contains(FULLSCREEN))
settings->setValue(FULLSCREEN, false);
if (!settings->contains(Y_WINDOW_SIZE))
settings->setValue(Y_WINDOW_SIZE, QSize(0, 0));
if (!settings->contains(MAXIMIZED))
settings->setValue(MAXIMIZED, false);
if (!settings->contains(DOUBLE_PAGE))