Commit 46ca7e00 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇

Set proper transient

Qt should really do that for us
parent fc81acff
......@@ -25,6 +25,7 @@
#include <QDialogButtonBox>
#include <QPushButton>
#include <QQuickItem>
#include <QQuickRenderControl>
#include <QQuickWindow>
#include <QStandardPaths>
#include <QVBoxLayout>
......@@ -161,7 +162,7 @@ void KCMNotifications::configureEvents(const QString &notifyRcName, const QStrin
if (ctx && ctx->window()) {
dialog->winId(); // so it creates windowHandle
dialog->windowHandle()->setTransientParent(ctx->window());
dialog->windowHandle()->setTransientParent(QQuickRenderControl::renderWindowFor(ctx->window()));
dialog->setModal(true);
}
......
......@@ -37,8 +37,6 @@
#include <algorithm>
#include <QDebug>
SourcesModel::SourcesModel(QObject *parent) : QAbstractItemModel(parent)
{
......
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