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:
Martin Kleusberg
2018-05-25 23:47:47 +02:00
parent 3995ad2442
commit 39302f5b60

View File

@@ -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*)