1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 09:32:12 +01:00

Plugins: Only resolve relative plugin paths

This commit is contained in:
David Rosca 2016-12-23 15:09:08 +01:00
parent 6cac8b50ce
commit 3447e139b5

View File

@ -94,8 +94,11 @@ void Plugins::loadSettings()
if (mApp->isPortable()) {
#endif
QDir dir(DataPaths::path(DataPaths::Plugins));
for (int i = 0; i < m_allowedPlugins.count(); ++i)
m_allowedPlugins[i] = dir.absoluteFilePath(m_allowedPlugins[i]);
for (int i = 0; i < m_allowedPlugins.count(); ++i) {
if (QFileInfo(m_allowedPlugins[i]).isRelative()) {
m_allowedPlugins[i] = dir.absoluteFilePath(m_allowedPlugins[i]);
}
}
}
c2f_loadSettings();