Move external command helper stopping code to kpmcore.

This commit is contained in:
Andrius Štikonas 2018-03-21 20:51:10 +01:00
parent 62a3b57c2d
commit cc73b6c9ce
1 changed files with 1 additions and 4 deletions

View File

@ -63,7 +63,6 @@
#include <QCloseEvent>
#include <QCollator>
#include <QDateTime>
#include <QDBusInterface>
#include <QFile>
#include <QFileDialog>
#include <QtGlobal>
@ -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)