Stop ExternalCommandHelper before quiting the application.
This commit is contained in:
parent
98209f90bc
commit
60e86c3ad6
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue