From 0141ce9305458315ff8ae663f64b38d698a3d0f8 Mon Sep 17 00:00:00 2001 From: spycrab Date: Thu, 10 May 2018 19:42:15 +0200 Subject: [PATCH] Qt/NetPlayDialog: Restore window geometry --- Source/Core/DolphinQt2/NetPlay/NetPlayDialog.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Core/DolphinQt2/NetPlay/NetPlayDialog.cpp b/Source/Core/DolphinQt2/NetPlay/NetPlayDialog.cpp index 40bc73c403..ee8ffb084f 100644 --- a/Source/Core/DolphinQt2/NetPlay/NetPlayDialog.cpp +++ b/Source/Core/DolphinQt2/NetPlay/NetPlayDialog.cpp @@ -56,6 +56,7 @@ NetPlayDialog::NetPlayDialog(QWidget* parent) auto& settings = Settings::Instance().GetQSettings(); + restoreGeometry(settings.value(QStringLiteral("netplaydialog/geometry")).toByteArray()); m_splitter->restoreState(settings.value(QStringLiteral("netplaydialog/splitter")).toByteArray()); } @@ -63,6 +64,7 @@ NetPlayDialog::~NetPlayDialog() { auto& settings = Settings::Instance().GetQSettings(); + settings.setValue(QStringLiteral("netplaydialog/geometry"), saveGeometry()); settings.setValue(QStringLiteral("netplaydialog/splitter"), m_splitter->saveState()); }