Fix the fix for a Qt issue which messes up the table view when using the
filters. Without any fix, the rowid column is always shown when changing
the filters, but because the filter bar isn't regenerated the filters
are all displaced. With the first commit this is fixed, however changing
the filters always regenerated the filter bar which in turn deleted the
current filter value. With this commit this is fixed. The filters are
now working as expected.
This commit is contained in:
Martin Kleusberg
2018-05-20 20:22:55 +02:00
parent a117c11064
commit 189b750a00

View File

@@ -2453,7 +2453,8 @@ void MainWindow::updateFilter(int column, const QString& value)
setRecordsetLabel();
// This seems to be necessary as a workaround for newer Qt versions. Otherwise the rowid column is always shown after changing the filters.
showRowidColumn(browseTableSettings[currentlyBrowsedTableName()].showRowid);
bool showRowid = browseTableSettings[currentlyBrowsedTableName()].showRowid;
ui->dataTable->setColumnHidden(0, !showRowid);
}
void MainWindow::editEncryption()