Skip to content

Commit

Permalink
Also fix rowid column being shown when changing the sort order
Browse files Browse the repository at this point in the history
Apply the same fix as in 189b750 for
the filters for the sort order.
  • Loading branch information
MKleusberg committed May 25, 2018
1 parent 3995ad2 commit 39302f5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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*)
Expand Down

0 comments on commit 39302f5

Please sign in to comment.