Commit 57854537 authored by Elvis Angelaccio's avatar Elvis Angelaccio

Fix part loading with custom prefix installations

If there are multiple Ark installations, KPluginLoader will find more than one
Part plugin installed.
parent 85926fe6
......@@ -135,7 +135,7 @@ bool MainWindow::loadPart()
metaData.serviceTypes().contains(QStringLiteral("Browser/View"));
});
if (plugins.size() == 1) {
if (!plugins.isEmpty()) {
factory = KPluginLoader(plugins.first().fileName()).factory();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment