Skip to content

Commit

Permalink
Fix filters
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
MKleusberg committed May 16, 2018
1 parent 1865272 commit e6a4326
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit e6a4326

Please sign in to comment.