forked from qt-creator/qt-creator
Fix the wrong logic for plugin loading
Change-Id: I877102cae4a407b15ae6c41f1cf5c40ce704807a Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
committed by
Tobias Hunger
parent
46c4d18a46
commit
a5ede0f55f
@@ -232,15 +232,14 @@ int PluginView::parsePluginSpecs(QTreeWidgetItem *parentItem, Qt::CheckState &gr
|
|||||||
parentItem->addChild(pluginItem);
|
parentItem->addChild(pluginItem);
|
||||||
else
|
else
|
||||||
m_items.append(pluginItem);
|
m_items.append(pluginItem);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (checkedCount == plugins.length()) {
|
if (checkedCount == 0) {
|
||||||
groupState = Qt::Checked;
|
|
||||||
ret |= ParsedAll;
|
|
||||||
} else if (checkedCount == 0) {
|
|
||||||
groupState = Qt::Unchecked;
|
groupState = Qt::Unchecked;
|
||||||
ret |= ParsedNone;
|
ret |= ParsedNone;
|
||||||
|
} else if (checkedCount == plugins.length()) {
|
||||||
|
groupState = Qt::Checked;
|
||||||
|
ret |= ParsedAll;
|
||||||
} else {
|
} else {
|
||||||
groupState = Qt::PartiallyChecked;
|
groupState = Qt::PartiallyChecked;
|
||||||
ret = ret | ParsedPartial;
|
ret = ret | ParsedPartial;
|
||||||
|
|||||||
Reference in New Issue
Block a user