From cc73b6c9cec230e821a61b977edcb65e5b9da399 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Wed, 21 Mar 2018 20:51:10 +0100 Subject: [PATCH] Move external command helper stopping code to kpmcore. --- src/gui/mainwindow.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/gui/mainwindow.cpp b/src/gui/mainwindow.cpp index 2ca0e5e..786d69e 100644 --- a/src/gui/mainwindow.cpp +++ b/src/gui/mainwindow.cpp @@ -63,7 +63,6 @@ #include #include #include -#include #include #include #include @@ -167,9 +166,7 @@ void MainWindow::closeEvent(QCloseEvent* event) KXmlGuiWindow::closeEvent(event); - QDBusInterface iface(QStringLiteral("org.kde.kpmcore.helperinterface"), QStringLiteral("/Helper"), QStringLiteral("org.kde.kpmcore.externalcommand"), QDBusConnection::systemBus()); - if (iface.isValid()) - iface.call(QStringLiteral("exit"), CoreBackendManager::self()->Uuid()); + CoreBackendManager::stopExternalCommandHelper(); } void MainWindow::changeEvent(QEvent* event)