Commit 15a3d825 authored by David Faure's avatar David Faure
Browse files

Port to non-deprecated KWindowSystem::setMainWindow overload

parent 4d216b0a
......@@ -155,7 +155,8 @@ void SolidUiServer::reparentDialog(QWidget *dialog, WId wId, const QString &appI
Q_UNUSED(appId);
// Code borrowed from kwalletd
KWindowSystem::setMainWindow(dialog, wId); // correct, set dialog parent
dialog->setAttribute(Qt::WA_NativeWindow, true);
KWindowSystem::setMainWindow(dialog->windowHandle(), wId); // correct, set dialog parent
#if HAVE_X11
if (modal) {
......
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