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.
This commit is contained in:
parent
abfa8c8183
commit
ecd4f81840
1 changed files with 4 additions and 3 deletions
|
@ -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<count; ++i) {
|
||||
DeviceDbusInterface* device = model.getDevice(i);
|
||||
|
|
Loading…
Reference in a new issue