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
+1 -1
View File
@@ -72,6 +72,7 @@ CabrilloLogWindow::CabrilloLogWindow (QSettings * settings, Configuration const
auto h_header = m_->ui_.log_table_view->horizontalHeader ();
m_->ui_.log_table_view->verticalHeader()->setVisible(false); // turn off line numbers for the table view
h_header->moveSection (7, 1); // band to first column
}
CabrilloLogWindow::~CabrilloLogWindow ()
@@ -88,7 +89,6 @@ void CabrilloLogWindow::log_model_changed (int row)
{
m_->log_model_->select ();
}
this->set_nQSO(m_->log_model_->rowCount());
}
void CabrilloLogWindow::set_nQSO(int n)