diff options
Diffstat (limited to 'qmidiplayer-desktop/qmpmainwindow.cpp')
-rw-r--r-- | qmidiplayer-desktop/qmpmainwindow.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qmidiplayer-desktop/qmpmainwindow.cpp b/qmidiplayer-desktop/qmpmainwindow.cpp index 98378aa..456ae60 100644 --- a/qmidiplayer-desktop/qmpmainwindow.cpp +++ b/qmidiplayer-desktop/qmpmainwindow.cpp @@ -147,8 +147,8 @@ void qmpMainWindow::init() if (settings->getOptionBool("Behavior/DialogStatus")) { - QRect g = settings->getOptionRaw("DialogStatus/MainW", QRect(-999, -999, 999, 999)).toRect(); - if (g != QRect(-999, -999, 999, 999)) + QRect g = settings->getOptionRaw("DialogStatus/MainW", QRect()).toRect(); + if (!g.isNull()) setGeometry(g); } |