use correct method for getting row count from the DB; use signals/slots to inform the CabrilloLogWindow the qso_count has changed

This commit is contained in:
Brian Moran
2022-07-15 20:42:57 -07:00
parent aa16455320
commit 8bd3dd65bb
6 changed files with 20 additions and 12 deletions
+3 -1
View File
@@ -2779,7 +2779,9 @@ void MainWindow::on_contest_log_action_triggered()
m_contestLogWindow->showNormal ();
m_contestLogWindow->raise ();
m_contestLogWindow->activateWindow ();
//m_contestLogWindow->set_nQSO(m_logBook.contest_log()->n_qso());
// connect signal from m_logBook.contest_log to m_contestLogWindow
connect(m_logBook.contest_log(), &CabrilloLog::qso_count_changed, m_contestLogWindow.data (), &CabrilloLogWindow::set_nQSO);
m_contestLogWindow->set_nQSO(m_logBook.contest_log()->n_qso());
}
void MainWindow::on_actionColors_triggered()