Stop ExternalCommandHelper before quiting the application.

This commit is contained in:
Andrius Štikonas 2018-03-19 02:34:30 +01:00
parent 98209f90bc
commit 60e86c3ad6
1 changed files with 5 additions and 0 deletions

View File

@ -63,6 +63,7 @@
#include <QCloseEvent>
#include <QCollator>
#include <QDateTime>
#include <QDBusInterface>
#include <QFile>
#include <QFileDialog>
#include <QtGlobal>
@ -165,6 +166,10 @@ void MainWindow::closeEvent(QCloseEvent* event)
saveConfig();
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());
}
void MainWindow::changeEvent(QEvent* event)