mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-03-23 12:38:53 -04:00
remove hound callsign from left hand side if clicked on in active station window
This commit is contained in:
parent
30c87ea019
commit
ffd5dd1db2
@ -3998,6 +3998,7 @@ void MainWindow::queueActiveWindowHound2(QString line) {
|
||||
refreshHoundQueueDisplay();
|
||||
// TODO: remove from active stations window too?
|
||||
}
|
||||
removeHoundFromCallingList(caller);
|
||||
}
|
||||
} else {
|
||||
LOG_INFO(QString("ActiveStations Window click: skipping %1").arg(line));
|
||||
@ -10239,6 +10240,17 @@ QString MainWindow::sortHoundCalls(QString t, int isort, int max_dB)
|
||||
return m_houndCallers;
|
||||
}
|
||||
|
||||
void MainWindow::removeHoundFromCallingList(QString callsign)
|
||||
{
|
||||
QString text = m_houndCallers;
|
||||
QRegularExpression re = QRegularExpression("^" + callsign + "[^\\n]+\\n", QRegularExpression::MultilineOption);
|
||||
text.remove(re);
|
||||
if (text != m_houndCallers) {
|
||||
m_nSortedHounds--;
|
||||
m_houndCallers = text;
|
||||
ui->decodedTextBrowser->setHighlightedHoundText(m_houndCallers);
|
||||
}
|
||||
}
|
||||
//------------------------------------------------------------------------------
|
||||
void MainWindow::selectHound(QString line, bool bTopQueue)
|
||||
{
|
||||
|
@ -873,6 +873,7 @@ private:
|
||||
QChar current_submode () const; // returns QChar {0} if submode is not appropriate
|
||||
void write_transmit_entry (QString const& file_name);
|
||||
void selectHound(QString t, bool bTopQueue);
|
||||
void removeHoundFromCallingList(QString callsign);
|
||||
void houndCallers();
|
||||
void updateFoxQSOsInProgressDisplay();
|
||||
void foxQueueTopCallCommand();
|
||||
|
Loading…
Reference in New Issue
Block a user