diff --git a/kerfuffle/pluginmanager.cpp b/kerfuffle/pluginmanager.cpp index ef379a844f24d62bffe09ada0f8a2a2c26ae25f3..50b1f7a8afa7718389e1759dd9a53d3818c9c438 100644 --- a/kerfuffle/pluginmanager.cpp +++ b/kerfuffle/pluginmanager.cpp @@ -122,8 +122,9 @@ QStringList PluginManager::supportedMimeTypes(MimeSortingMode mode) const supported.remove(QStringLiteral("application/x-lz4-compressed-tar")); } + static bool s_libarchiveHasLzo = libarchiveHasLzo(); // Remove entry for lzo-compressed tar if libarchive not linked against lzo and lzop executable not found in path. - if (!libarchiveHasLzo() && QStandardPaths::findExecutable(QStringLiteral("lzop")).isEmpty()) { + if (!s_libarchiveHasLzo && QStandardPaths::findExecutable(QStringLiteral("lzop")).isEmpty()) { supported.remove(QStringLiteral("application/x-tzo")); }