From 2dff59260c72582941dbfd4ec52625a0e3ea5ddd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Sun, 11 Oct 2020 22:26:04 +0100 Subject: [PATCH] Remove exit call from the helper. It is no longer used. BUG: 412887 --- src/util/externalcommandhelper.cpp | 8 -------- src/util/externalcommandhelper.h | 1 - 2 files changed, 9 deletions(-) diff --git a/src/util/externalcommandhelper.cpp b/src/util/externalcommandhelper.cpp index c874d3b..e9e9b03 100644 --- a/src/util/externalcommandhelper.cpp +++ b/src/util/externalcommandhelper.cpp @@ -303,14 +303,6 @@ QVariantMap ExternalCommandHelper::start(const QString& command, const QStringLi return reply; } -void ExternalCommandHelper::exit() -{ - if (!isCallerAuthorized()) { - return; - } - qApp->quit(); -} - void ExternalCommandHelper::onReadOutput() { /* const QByteArray s = cmd.readAllStandardOutput(); diff --git a/src/util/externalcommandhelper.h b/src/util/externalcommandhelper.h index d36447a..10ba3f5 100644 --- a/src/util/externalcommandhelper.h +++ b/src/util/externalcommandhelper.h @@ -41,7 +41,6 @@ public Q_SLOTS: Q_SCRIPTABLE QVariantMap copyblocks(const QString& sourceDevice, const qint64 sourceFirstByte, const qint64 sourceLength, const QString& targetDevice, const qint64 targetFirstByte, const qint64 blockSize); Q_SCRIPTABLE bool writeData(const QByteArray& buffer, const QString& targetDevice, const qint64 targetFirstByte); Q_SCRIPTABLE bool createFile(const QByteArray& fileContents, const QString& filePath); - Q_SCRIPTABLE void exit(); private: