1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 18:56:34 +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,9 +94,12 @@ void Plugins::loadSettings()
if (mApp->isPortable()) { if (mApp->isPortable()) {
#endif #endif
QDir dir(DataPaths::path(DataPaths::Plugins)); QDir dir(DataPaths::path(DataPaths::Plugins));
for (int i = 0; i < m_allowedPlugins.count(); ++i) for (int i = 0; i < m_allowedPlugins.count(); ++i) {
if (QFileInfo(m_allowedPlugins[i]).isRelative()) {
m_allowedPlugins[i] = dir.absoluteFilePath(m_allowedPlugins[i]); m_allowedPlugins[i] = dir.absoluteFilePath(m_allowedPlugins[i]);
} }
}
}
c2f_loadSettings(); c2f_loadSettings();
} }