Commit 54fda55b authored by Daniel Teske's avatar Daniel Teske Committed by hjk
Browse files

ProjectWizardPage: Handle null pointer correctly

Change-Id: I212ea6a177d7364778c28e30225c6f0da926bbd2
Reviewed-by: default avatarhjk <>
parent 9e159d87
......@@ -384,7 +384,7 @@ bool ProjectWizardPage::expandTree(const QModelIndex &root)
void ProjectWizardPage::setBestNode(AddNewTree *tree)
QModelIndex index = m_model->indexFromItem(tree);
QModelIndex index = tree ? m_model->indexFromItem(tree) : QModelIndex();
while (index.isValid()) {
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