Commit c76548ce authored by Tobias Hunger's avatar Tobias Hunger

GenericProject: Small readability improvement

Change-Id: If1ffe9c92f8f54ffd321b5ac2bf37b2b7ebf6544
Reviewed-by: default avatarEike Ziller <eike.ziller@theqtcompany.com>
Reviewed-by: default avatarTim Jenssen <tim.jenssen@theqtcompany.com>
parent 977608bc
......@@ -156,7 +156,7 @@ void SelectableFilesModel::buildTree(const Utils::FileName &baseDir, Tree *tree,
Tree *t = new Tree;
t->parent = tree;
t->name = fileInfo.fileName();
t->checked = m_allFiles || m_files.contains(fn) ? Qt::Checked : Qt::Unchecked;
t->checked = (m_allFiles || m_files.contains(fn)) ? Qt::Checked : Qt::Unchecked;
t->fullPath = fn;
t->isDir = false;
allChecked &= t->checked == Qt::Checked;
......
Markdown is supported
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