Commit 783276b0 authored by David Redondo's avatar David Redondo 🏎

Fix two minor mix-ups

parent f31f0454
......@@ -84,7 +84,7 @@ MouseArea {
Connections {
target: iconGrid
onCurrentIndexChanged: {
onCurrentItemChanged: {
if (delegateRoot.GridView.isCurrentItem) {
delegateRoot.setAsPreview();
}
......
......@@ -51,8 +51,8 @@ int SortFilterModel::currentIndex()
const QModelIndex index = mapFromSource(m_currentSourceIndex);
if (index.isValid()) {
return index.row();
}
m_currentSourceIndex = mapFromSource(this->index(0, 0));
}
m_currentSourceIndex = mapToSource(this->index(0, 0));
return 0;
}
......
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