Commit 7aeac1d5 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Make sure newly added kits are visible



Task-number: QTCREATORBUG-7803

Change-Id: I4dd190dc336ef6d64a8f3a800438909cdd3f258e
Reviewed-by: default avatarRobert Loehning <robert.loehning@nokia.com>
parent bd43956b
......@@ -182,6 +182,7 @@ void KitOptionsPage::addNewKit()
m_model->markForAddition(k);
QModelIndex newIdx = m_model->indexOf(k);
m_kitsView->scrollTo(newIdx);
m_selectionModel->select(newIdx,
QItemSelectionModel::Clear
| QItemSelectionModel::SelectCurrent
......@@ -199,6 +200,7 @@ void KitOptionsPage::cloneKit()
m_model->markForAddition(k);
QModelIndex newIdx = m_model->indexOf(k);
m_kitsView->scrollTo(newIdx);
m_selectionModel->select(newIdx,
QItemSelectionModel::Clear
| QItemSelectionModel::SelectCurrent
......
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