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);
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user