Skip to content
Snippets Groups Projects
Commit a5ede0f5 authored by Yuchen Deng's avatar Yuchen Deng Committed by Tobias Hunger
Browse files

Fix the wrong logic for plugin loading


Change-Id: I877102cae4a407b15ae6c41f1cf5c40ce704807a
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent 46c4d18a
No related branches found
No related tags found
No related merge requests found
......@@ -232,15 +232,14 @@ int PluginView::parsePluginSpecs(QTreeWidgetItem *parentItem, Qt::CheckState &gr
parentItem->addChild(pluginItem);
else
m_items.append(pluginItem);
}
if (checkedCount == plugins.length()) {
groupState = Qt::Checked;
ret |= ParsedAll;
} else if (checkedCount == 0) {
if (checkedCount == 0) {
groupState = Qt::Unchecked;
ret |= ParsedNone;
} else if (checkedCount == plugins.length()) {
groupState = Qt::Checked;
ret |= ParsedAll;
} else {
groupState = Qt::PartiallyChecked;
ret = ret | ParsedPartial;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment