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

Fix two minor mix-ups

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