forked from qt-creator/qt-creator
Fix the loading of C++ plugins from user directory
`appInfo().userPluginsRoot` already contains the versioned directory for
the "current" version. Before adding all the backwards compatible
version directories we need to step up once.
Amends 165ad2784e
Change-Id: I73456629654ff5f65dd8a2a9c2fc1d935a600d5f
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
@@ -196,7 +196,7 @@ static inline FilePaths getPluginPaths()
|
||||
// "%LOCALAPPDATA%\QtProject\qtcreator" on Windows Vista and later
|
||||
// "$XDG_DATA_HOME/data/QtProject/qtcreator" or "~/.local/share/data/QtProject/qtcreator" on Linux
|
||||
// "~/Library/Application Support/QtProject/Qt Creator" on Mac
|
||||
const FilePath userPluginPath = appInfo().userPluginsRoot;
|
||||
const FilePath userPluginPath = appInfo().userPluginsRoot.parentDir();
|
||||
|
||||
// Qt Creator X.Y.Z can load plugins from X.Y.(Z-1) etc, so add current and previous
|
||||
// patch versions
|
||||
|
Reference in New Issue
Block a user