From 189b750a009b71bc7de021647309d0b0d8c40232 Mon Sep 17 00:00:00 2001 From: Martin Kleusberg Date: Sun, 20 May 2018 20:22:55 +0200 Subject: [PATCH] Fix e6a4326e9bc1d48d027278171e8ab335c1f91e82 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. --- src/MainWindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 5b1038fb..413c6c0c 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -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()