fix table inspector showed details of wrong table.
Caused by using a proxy index with a function that needed an index that was mapped to the source. Fow now mostly fixed by introducing multiple functions with clearer naming and using the correct one but would prefer when the helper could hide the details of there being two index spaces.
This commit is contained in:
parent
93a55047b6
commit
8fe5e05f7d
2 changed files with 16 additions and 5 deletions
|
|
@ -118,7 +118,7 @@ void CatalogTablesPage::setNamespaceFilter(NamespaceFilter filter)
|
|||
void CatalogTablesPage::tableListTable_currentRowChanged(const QModelIndex ¤t, const QModelIndex &previous)
|
||||
{
|
||||
if (current.row() != previous.row()) {
|
||||
auto table = m_tablesTableView.rowItem(current.row());
|
||||
auto table = m_tablesTableView.rowItemForProxyIndex(current);
|
||||
selectedTableChanged(table);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue