From ecd4f8184088d8f35fd90d2666639cb8a543ea42 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Thu, 25 May 2017 00:16:05 +0200 Subject: [PATCH] Don't block the process while showing the dialog Otherwise it's not possible to interact with the system tray while the dialog is open. --- indicator/main.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/indicator/main.cpp b/indicator/main.cpp index edfccca7c..c0162f0ca 100644 --- a/indicator/main.cpp +++ b/indicator/main.cpp @@ -69,9 +69,10 @@ int main(int argc, char** argv) menu->clear(); auto configure = menu->addAction(i18n("Configure...")); QObject::connect(configure, &QAction::triggered, configure, [](){ - KCMultiDialog dialog; - dialog.addModule("kcm_kdeconnect"); - dialog.exec(); + KCMultiDialog* dialog = new KCMultiDialog; + dialog->addModule("kcm_kdeconnect"); + dialog->setAttribute(Qt::WA_DeleteOnClose); + dialog->show(); }); for (int i=0, count = model.rowCount(); i