mirror of
				https://github.com/saitohirga/WSJT-X.git
				synced 2025-11-03 13:30:52 -05: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();
 | 
					          refreshHoundQueueDisplay();
 | 
				
			||||||
          // TODO: remove from active stations window too?
 | 
					          // TODO: remove from active stations window too?
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					        removeHoundFromCallingList(caller);
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    } else {
 | 
					    } else {
 | 
				
			||||||
      LOG_INFO(QString("ActiveStations Window click: skipping %1").arg(line));
 | 
					      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;
 | 
					  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)
 | 
					void MainWindow::selectHound(QString line, bool bTopQueue)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
				
			|||||||
@ -873,6 +873,7 @@ private:
 | 
				
			|||||||
  QChar current_submode () const; // returns QChar {0} if submode is not appropriate
 | 
					  QChar current_submode () const; // returns QChar {0} if submode is not appropriate
 | 
				
			||||||
  void write_transmit_entry (QString const& file_name);
 | 
					  void write_transmit_entry (QString const& file_name);
 | 
				
			||||||
  void selectHound(QString t, bool bTopQueue);
 | 
					  void selectHound(QString t, bool bTopQueue);
 | 
				
			||||||
 | 
					  void removeHoundFromCallingList(QString callsign);
 | 
				
			||||||
  void houndCallers();
 | 
					  void houndCallers();
 | 
				
			||||||
  void updateFoxQSOsInProgressDisplay();
 | 
					  void updateFoxQSOsInProgressDisplay();
 | 
				
			||||||
  void foxQueueTopCallCommand();
 | 
					  void foxQueueTopCallCommand();
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user