Commit 70fe227e authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

Bail out early when setPluginLoaded would result in no change

Otherwise complains that the plugin refused to load because we didn't even try in the if statement below.

Differential Revision: https://phabricator.kde.org/D24693
parent 4b75dd4e
......@@ -62,6 +62,10 @@ bool PluginManager::setPluginLoaded(AbstractBrowserPlugin *plugin, bool loaded)
return false;
}
if (plugin->isLoaded() == loaded) {
return true;
}
bool ok = false;
if (loaded && !plugin->isLoaded()) {
ok = plugin->onLoad();
......
Supports Markdown
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