mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 01:22:10 +01:00
QmlPluginLoader: Fallback to main.qml as entrypoint if not set
This commit is contained in:
parent
10eb20c162
commit
231101151e
|
@ -70,7 +70,7 @@ void QmlPlugin::initPlugin(Plugins::Plugin *plugin)
|
|||
}
|
||||
qmlPluginLoader->createComponent();
|
||||
if (!qmlPluginLoader->instance()) {
|
||||
qWarning().noquote() << "Falied to create component for" << name << "plugin:" << qmlPluginLoader->component()->errorString();
|
||||
qWarning().noquote() << "Failed to create component for" << name << "plugin:" << qmlPluginLoader->component()->errorString();
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ QmlPluginLoader::QmlPluginLoader(const QString &name, const QString &path, const
|
|||
{
|
||||
m_name = name;
|
||||
m_path = path;
|
||||
m_entryPoint = entryPoint;
|
||||
m_entryPoint = entryPoint.isEmpty() ? QSL("main.qml") : entryPoint;
|
||||
initEngineAndComponent();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user