diff options
Diffstat (limited to 'src/core/GpgCoreInit.cpp')
-rw-r--r-- | src/core/GpgCoreInit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/GpgCoreInit.cpp b/src/core/GpgCoreInit.cpp index 5018b8e4..e12c71f1 100644 --- a/src/core/GpgCoreInit.cpp +++ b/src/core/GpgCoreInit.cpp @@ -81,7 +81,7 @@ auto GetDefaultKeyDatabasePath(const QString& gpgconf_path) -> QString { QFileInfo info(gpgconf_path); if (!info.exists() || !info.isFile()) return {}; - auto* p = new QProcess(QCoreApplication::instance()); + auto* p = new QProcess(); p->setProgram(info.absoluteFilePath()); p->setArguments({"--list-dirs", "homedir"}); p->start(); @@ -275,7 +275,7 @@ auto RefreshGpgMEBackendEngine(const QString& gpgconf_path, auto GetComponentPathsByGpgConf(const QString& gpgconf_install_fs_path) -> bool { - auto* process = new QProcess(QCoreApplication::instance()); + auto* process = new QProcess(); process->setProgram(gpgconf_install_fs_path); process->setArguments({"--check-programs"}); process->start(); |