Commit 0aeeb824 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

[kcms/componentchooser] Pass parent window to KOpenWithDialog

This makes sure it's nicely centered in the parent window
parent 3286cc2b
Pipeline #229373 passed with stage
in 2 minutes and 50 seconds
......@@ -8,6 +8,7 @@
#include "componentchooser.h"
#include <QApplication>
#include <QDBusConnection>
#include <QDBusMessage>
......@@ -90,7 +91,7 @@ void ComponentChooser::select(int index)
return;
}
if (index == m_applications.length() - 1) {
KOpenWithDialog *dialog = new KOpenWithDialog(QList<QUrl>(), m_mimeType, m_dialogText, QString());
KOpenWithDialog *dialog = new KOpenWithDialog(QList<QUrl>(), m_mimeType, m_dialogText, QString(), QApplication::activeWindow());
dialog->setSaveNewApplications(true);
dialog->setAttribute(Qt::WA_DeleteOnClose);
connect(dialog, &KOpenWithDialog::finished, this, [this, dialog](int result) {
......
Supports Markdown
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