Skip to content

Commit

Permalink
keep filters after reload
Browse files Browse the repository at this point in the history
  • Loading branch information
sunderme committed Jul 1, 2023
1 parent b0f4552 commit c773575
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,14 @@ void MainWindow::openFile()
void MainWindow::reloadFile()
{
if(m_fileName.isEmpty()) return;
const QList<ColumnFilter> store_columnFilters=m_columnFilters;
readFile();
m_columnFilters=store_columnFilters;
for(const ColumnFilter &cf:m_columnFilters){
const int column=cf.column;
updateColBackground(column,true);
}
updateFilteredTable();
}
/*!
* \brief open file via recent menu
Expand Down

0 comments on commit c773575

Please sign in to comment.