mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 02:50:46 -06:00
Remove filter row when closing database file
Remove the filter row in the browse tab when closing the database. Before this it would remain visible leading to a crash when using it.
This commit is contained in:
@@ -279,6 +279,8 @@ void MainWindow::populateTable( const QString & tablename)
|
||||
if(tablename.isEmpty())
|
||||
{
|
||||
ui->dataTable->setModel(0);
|
||||
if(qobject_cast<FilterTableHeader*>(ui->dataTable->horizontalHeader()))
|
||||
qobject_cast<FilterTableHeader*>(ui->dataTable->horizontalHeader())->generateFilters(0);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user