mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 02:50:46 -06:00
Also fix rowid column being shown when changing the sort order
Apply the same fix as in 189b750a00 for
the filters for the sort order.
This commit is contained in:
@@ -1640,6 +1640,10 @@ void MainWindow::browseTableHeaderClicked(int logicalindex)
|
||||
ui->dataTable->setCurrentIndex(ui->dataTable->currentIndex().sibling(0, logicalindex));
|
||||
|
||||
attachPlot(ui->dataTable, m_browseTableModel, &browseTableSettings[currentlyBrowsedTableName()]);
|
||||
|
||||
// This seems to be necessary as a workaround for newer Qt versions. Otherwise the rowid column is always shown after changing the filters.
|
||||
bool showRowid = browseTableSettings[currentlyBrowsedTableName()].showRowid;
|
||||
ui->dataTable->setColumnHidden(0, !showRowid);
|
||||
}
|
||||
|
||||
void MainWindow::resizeEvent(QResizeEvent*)
|
||||
|
||||
Reference in New Issue
Block a user