LYN-1767: Search View Crash Fix (#1430)

* Fixed crash in tableView when the filter goes empty and there is a selected entry.

* fixed consts

* Code Review Changes

* more minor fixes
This commit is contained in:
IgnacioMartinezGarrido
2021-06-21 09:49:01 +01:00
committed by GitHub
parent 8459855395
commit e4e22879b8
6 changed files with 77 additions and 66 deletions
@@ -69,6 +69,17 @@ namespace AzToolsFramework
return sourceIndex.data(role);
}
QModelIndex AssetBrowserTableModel::parent([[maybe_unused]] const QModelIndex& child) const
{
return QModelIndex();
}
QModelIndex AssetBrowserTableModel::sibling(
[[maybe_unused]] int row, [[maybe_unused]] int column, [[maybe_unused]] const QModelIndex& idx) const
{
return QModelIndex();
}
QModelIndex AssetBrowserTableModel::index(int row, int column, const QModelIndex& parent) const
{
return parent.isValid() ? QModelIndex() : createIndex(row, column, m_indexMap[row].internalPointer());