Index page now correctly responds to reload.
This commit is contained in:
parent
60d8f36328
commit
fa46971930
3 changed files with 17 additions and 5 deletions
|
|
@ -16,6 +16,7 @@ CatalogIndexPage::CatalogIndexPage(QWidget *parent)
|
|||
|
||||
connect(m_tableView->selectionModel(), &QItemSelectionModel::selectionChanged,
|
||||
this, &CatalogIndexPage::tableView_selectionChanged);
|
||||
connect(m_indexModel, &IndexModel::modelReset, m_definitionView, &SqlCodePreview::clear);
|
||||
}
|
||||
|
||||
void CatalogIndexPage::catalogSet()
|
||||
|
|
@ -26,7 +27,6 @@ void CatalogIndexPage::setFilter(const std::optional<PgClass> &cls)
|
|||
{
|
||||
m_indexModel->setData(m_catalog, cls);
|
||||
m_tableView->resizeColumnsToContents();
|
||||
m_definitionView->setPlainText({});
|
||||
}
|
||||
|
||||
void CatalogIndexPage::tableView_selectionChanged(const QItemSelection &/*selected*/, const QItemSelection &/*deselected*/)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue