diff options
author | Ludovic Le Brun <ludovic.lebrun310@gmail.com> | 2023-10-18 19:02:58 +0200 |
---|---|---|
committer | Ludovic Le Brun <ludovic.lebrun@smile.fr> | 2023-10-20 10:08:34 +0000 |
commit | 26b2a755a81bc5b26f7a59f0a87362c6dc80d353 (patch) | |
tree | 3e2fd2619ef132e0d104d2d1275f1caad2909778 | |
parent | fb788dec30bc6638138c880ad5c41907c7c39264 (diff) |
Fix install .so plugins
Remove the period from the file extension .so because the completeSuffix function of the FilePath class does not return the first period of the extension.
Change-Id: Ifd850e54337c399d6440b6ad765c3b23df9ed330
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
-rw-r--r-- | src/plugins/coreplugin/plugininstallwizard.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/coreplugin/plugininstallwizard.cpp b/src/plugins/coreplugin/plugininstallwizard.cpp index 85f2f3effe..9a0b92c871 100644 --- a/src/plugins/coreplugin/plugininstallwizard.cpp +++ b/src/plugins/coreplugin/plugininstallwizard.cpp @@ -58,7 +58,7 @@ static QStringList libraryNameFilter() static bool hasLibSuffix(const FilePath &path) { return (HostOsInfo::isWindowsHost() && path.endsWith(".dll")) - || (HostOsInfo::isLinuxHost() && path.completeSuffix().startsWith(".so")) + || (HostOsInfo::isLinuxHost() && path.completeSuffix().startsWith("so")) || (HostOsInfo::isMacHost() && path.endsWith(".dylib")); } |