Commit 17b5c9bb authored by hjk's avatar hjk
Browse files

ProjectExplorer: Quieten soft assert in KitModel



Task-number: QTCREATORBUG-13830
Change-Id: Ie6950a797a4156a1934c263128ee0446f8b5fff0
Reviewed-by: default avatarChristian Kandeler <christian.kandeler@theqtcompany.com>
parent c5dfc33b
...@@ -150,7 +150,7 @@ KitNode *KitModel::kitNode(const QModelIndex &index) ...@@ -150,7 +150,7 @@ KitNode *KitModel::kitNode(const QModelIndex &index)
QModelIndex KitModel::indexOf(Kit *k) const QModelIndex KitModel::indexOf(Kit *k) const
{ {
KitNode *n = findWorkingCopy(k); KitNode *n = findWorkingCopy(k);
return indexFromItem(n); return n ? indexFromItem(n) : QModelIndex();
} }
void KitModel::setDefaultKit(const QModelIndex &index) void KitModel::setDefaultKit(const QModelIndex &index)
......
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