List of tables now updates after reload of catalog.

This commit is contained in:
eelke 2019-10-09 18:36:54 +02:00
parent f4f514efb0
commit 5c586ea807
3 changed files with 22 additions and 9 deletions

View file

@ -72,6 +72,12 @@ CatalogTablesPage::CatalogTablesPage(QWidget *parent)
// Signals
connect(m_tableView->selectionModel(), &QItemSelectionModel::currentRowChanged, this,
&CatalogTablesPage::tableListTable_currentRowChanged);
connect(m_tablesModel, &TablesTableModel::modelReset,
[this] ()
{
selectedTableChanged({});
m_propertiesPage->setActiveRow({});
});
connect(m_tablesModel, &QAbstractItemModel::layoutChanged,
this, &CatalogTablesPage::tableListTable_layoutChanged);