Commit 945abb25 authored by David Edmundson's avatar David Edmundson
Browse files

Merge branch 'Plasma/5.17'

parents a5bdd39f 2e9f9684
......@@ -370,6 +370,10 @@ void KDEPlatformFileDialogHelper::restoreSize()
{
m_dialog->winId(); // ensure there's a window created
KSharedConfig::Ptr conf = KSharedConfig::openConfig();
// see the note below
m_dialog->windowHandle()->resize(m_dialog->sizeHint());
KWindowConfig::restoreWindowSize(m_dialog->windowHandle(), conf->group("FileDialogSize"));
// NOTICE: QWindow::setGeometry() does NOT impact the backing QWidget geometry even if the platform
// window was created -> QTBUG-40584. We therefore copy the size here.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment