Deselect callsign on Log QSO

This commit is contained in:
Jordan Sherer 2018-09-06 11:19:38 -04:00
parent 04e3dc9c3e
commit 3a139fc87a
2 changed files with 8 additions and 0 deletions

View File

@ -6739,6 +6739,8 @@ void MainWindow::acceptQSO (QDateTime const& QSO_date_off, QString const& call,
{"STATION.GRID", QVariant(my_grid)}
});
clearCallsignSelected();
if (m_config.clear_DX () and !m_config.bHound()) clearDX ();
m_dateTimeQSOOn = QDateTime {};
}
@ -8846,6 +8848,11 @@ QString MainWindow::callsignSelected(){
return QString();
}
void MainWindow::clearCallsignSelected(){
ui->tableWidgetCalls->clearSelection();
ui->tableWidgetRXAll->clearSelection();
}
bool MainWindow::isRecentOffset(int offset){
if(abs(offset - currentFreqOffset()) <= 10){
return true;

View File

@ -859,6 +859,7 @@ private:
bool isMyCallIncluded(QString const &text);
bool isAllCallIncluded(QString const &text);
QString callsignSelected();
void clearCallsignSelected();
bool isRecentOffset(int offset);
void markOffsetRecent(int offset);
bool isDirectedOffset(int offset, bool *pIsAllCall);