Commit cf7aee68 authored by Simon Depiets's avatar Simon Depiets
Browse files

Fix a segfault on Project Widget

parent d61b37c0
......@@ -477,7 +477,7 @@ ProjectWidget::gotoIndexResult ProjectWidget::gotoIndexFind(
}
// Handle child recursively if index is not a leaf
QModelIndex child = index.model()->index((direction == 1) ? 0 : (m_proxyModel->rowCount(index) - 1), index.column());
QModelIndex child = index.model()->index((direction == 1) ? 0 : (m_proxyModel->rowCount(index) - 1), index.column(), index);
if (child.isValid()) {
ProjectWidget::gotoIndexResult result = gotoIndexFind(child, role, direction);
if (result != gotoIndex_notfound)
......
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