Skip to content

Commit

Permalink
qt: Correct setCurrentIndex for sections
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonKagstrom committed Jul 8, 2024
1 parent 47a1c5e commit d7186ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qt/emilpro/mainwindow.cc
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ MainWindow::LoadFile(const std::string& filename, std::optional<emilpro::Machine
SetRowColor(m_section_view_model, last_row, kSectionDataColor);
}

m_ui->sectionTableView->setCurrentIndex(m_section_view_model->index(0, 0));
m_ui->sectionTableView->setCurrentIndex(m_section_proxy_model->index(0, 0));
}

m_visible_symbols = m_database.Symbols();
Expand Down

0 comments on commit d7186ba

Please sign in to comment.