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: