aboutsummaryrefslogtreecommitdiff
path: root/qmidiplayer-desktop/qmpplistwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qmidiplayer-desktop/qmpplistwindow.cpp')
-rw-r--r--qmidiplayer-desktop/qmpplistwindow.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/qmidiplayer-desktop/qmpplistwindow.cpp b/qmidiplayer-desktop/qmpplistwindow.cpp
index 55cc980..59bea38 100644
--- a/qmidiplayer-desktop/qmpplistwindow.cpp
+++ b/qmidiplayer-desktop/qmpplistwindow.cpp
@@ -82,8 +82,8 @@ qmpPlistWindow::qmpPlistWindow(QWidget *parent):
0,
true
);
- if (settings->getOptionRaw("DialogStatus/PListW", QRect(-999, -999, 999, 999)).toRect() != QRect(-999, -999, 999, 999))
- setGeometry(settings->getOptionRaw("DialogStatus/PListW", QRect(-999, -999, 999, 999)).toRect());
+ if (!settings->getOptionRaw("DialogStatus/PListW", QRect()).toRect().isNull())
+ setGeometry(settings->getOptionRaw("DialogStatus/PListW", QRect()).toRect());
if (settings->getOptionRaw("DialogStatus/PListWShown", 0).toInt())
{
show();
@@ -104,8 +104,8 @@ void qmpPlistWindow::showEvent(QShowEvent *event)
{
settings->setOptionRaw("DialogStatus/PListWShown", 1);
}
- if (settings->getOptionRaw("DialogStatus/PListW", QRect(-999, -999, 999, 999)).toRect() != QRect(-999, -999, 999, 999))
- setGeometry(settings->getOptionRaw("DialogStatus/PListW", QRect(-999, -999, 999, 999)).toRect());
+ if (!settings->getOptionRaw("DialogStatus/PListW", QRect()).toRect().isNull())
+ setGeometry(settings->getOptionRaw("DialogStatus/PListW", QRect()).toRect());
event->accept();
}