mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 10:52:56 +00:00
append the plugins installation path to the application plugin paths from QCoreApplication::pluginPaths()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
f661b78680
commit
deb7e08d41
1 changed files with 1 additions and 1 deletions
|
@ -1722,7 +1722,7 @@ QStringList QCoreApplication::pluginPaths()
|
|||
QMutexLocker locker(qGlobalAppPathsMutex());
|
||||
|
||||
if (coreappdata()->app_pluginpaths.isEmpty()) {
|
||||
const QString installPathPlugins = QLibraryInfo::location(QLibraryInfo::LibrariesPath);
|
||||
const QString installPathPlugins = QLibraryInfo::location(QLibraryInfo::PluginsPath);
|
||||
if (QDir(installPathPlugins).exists()
|
||||
&& !coreappdata()->app_pluginpaths.contains(installPathPlugins)) {
|
||||
coreappdata()->app_pluginpaths.append(installPathPlugins);
|
||||
|
|
Loading…
Add table
Reference in a new issue