Commit d71e513c authored by Niels Weber's avatar Niels Weber

Fix compile with Qt < 5.6

Change-Id: I633d9f85efa709c41ec439f12b8963f612755008
Reviewed-by: default avatarChristian Stenger <christian.stenger@theqtcompany.com>
parent 8ac1f8eb
......@@ -299,7 +299,7 @@ void DocSettingsPage::removeDocumentation(const QList<QModelIndex> &items)
m_model->removeAt(row);
}
const int newlySelectedRow = qMax(items.constFirst().row() - 1, 0);
const int newlySelectedRow = qMax(items.first().row() - 1, 0);
const QModelIndex index = m_proxyModel->mapFromSource(m_model->index(newlySelectedRow));
m_ui.docsListView->selectionModel()->select(index, QItemSelectionModel::ClearAndSelect);
}
......
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