diff options
author | Chris Xiong <chirs241097@gmail.com> | 2020-05-12 01:11:19 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2020-05-12 01:11:19 +0800 |
commit | db54b5d51d5269c2e17964e0e9842f4a2f210673 (patch) | |
tree | ebc7b5858e1cc712fcc6de4ec50896051ebfaf0b /qmidiplayer-desktop/qmpmainwindow.cpp | |
parent | a7407edaf81c685d4a389785a405a53a5de4b148 (diff) | |
download | QMidiPlayer-db54b5d51d5269c2e17964e0e9842f4a2f210673.tar.xz |
Stop using a dumber version of QRect().
This is going to break old configuration, so bump QMP_CONFIGURATION_FILE_REV.
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); } |