1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 02:36:34 +01:00

Fix loading Python/QML extensions on startup

This commit is contained in:
David Rosca 2019-04-20 16:54:06 +02:00
parent 0b261874cb
commit dc3063fc63
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8
3 changed files with 5 additions and 5 deletions

View File

@ -374,7 +374,7 @@ Plugins::Plugin Plugins::loadSharedLibraryPlugin(const QString &name)
} else {
fullPath = DataPaths::locate(DataPaths::Plugins, name);
if (fullPath.isEmpty()) {
qWarning() << "Plugin" << name << "not found";
qWarning() << "Library plugin" << name << "not found";
return Plugin();
}
}

View File

@ -40,9 +40,9 @@ Plugins::Plugin QmlPlugin::loadPlugin(const QString &name)
if (QFileInfo(name).isAbsolute()) {
fullPath = name;
} else {
fullPath = DataPaths::locate(DataPaths::Plugins, QSL("qml/") + name);
fullPath = DataPaths::locate(DataPaths::Plugins, name);
if (fullPath.isEmpty()) {
qWarning() << "Plugin" << name << "not found";
qWarning() << "QML plugin" << name << "not found";
return Plugins::Plugin();
}
}

View File

@ -88,9 +88,9 @@ Plugins::Plugin pyfalkon_load_plugin(const QString &name)
if (QFileInfo(name).isAbsolute()) {
fullPath = name;
} else {
fullPath = DataPaths::locate(DataPaths::Plugins, QSL("python/") + name);
fullPath = DataPaths::locate(DataPaths::Plugins, name);
if (fullPath.isEmpty()) {
qWarning() << "Plugin" << name << "not found";
qWarning() << "Python plugin" << name << "not found";
return Plugins::Plugin();
}
}