From e6a4326e9bc1d48d027278171e8ab335c1f91e82 Mon Sep 17 00:00:00 2001 From: Martin Kleusberg Date: Wed, 16 May 2018 15:01:22 +0200 Subject: [PATCH] Fix filters Fix a bug that causes the rowid column to be always shown when changing the filters. I *believe* this was happening since updating to Qt 5.10. --- src/MainWindow.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 3acef0cd..7ebca529 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -2429,6 +2429,9 @@ void MainWindow::updateFilter(int column, const QString& value) m_browseTableModel->updateFilter(column, value); browseTableSettings[currentlyBrowsedTableName()].filterValues[column] = 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); } void MainWindow::editEncryption()