Small logic fix

This commit is contained in:
Tobias Hunger
2010-03-29 16:32:35 +02:00
parent bc7e3f2c64
commit f1abcaf79d

View File

@@ -175,7 +175,7 @@ bool TargetSetupPage::hasSelection() const
QTreeWidgetItem * current = m_treeWidget->topLevelItem(i); QTreeWidgetItem * current = m_treeWidget->topLevelItem(i);
for (int j = 0; j < current->childCount(); ++j) { for (int j = 0; j < current->childCount(); ++j) {
QTreeWidgetItem * child = current->child(j); QTreeWidgetItem * child = current->child(j);
if (child->checkState(0) != Qt::Checked) if (child->checkState(0) == Qt::Checked)
return true; return true;
} }
} }