Set the QTH button to drop in the station location if provided

This commit is contained in:
Jordan Sherer 2018-07-20 16:11:13 -04:00
parent ac27d1a9b6
commit 1c6d1babe6

View File

@ -6820,7 +6820,11 @@ void MainWindow::on_cqMacroButton_clicked(){
}
void MainWindow::on_qtcMacroButton_clicked(){
addMessageText(m_config.my_station());
QString qtc = m_config.my_station();
if(qtc.isEmpty()){
return;
}
addMessageText(qtc);
}
void MainWindow::on_replyMacroButton_clicked(){
@ -6842,7 +6846,14 @@ void MainWindow::on_replyMacroButton_clicked(){
}
void MainWindow::on_qthMacroButton_clicked(){
addMessageText(m_config.my_grid().left(4));
QString qth = m_config.my_qth();
if(qth.isEmpty()){
qth = m_config.my_grid();
}
if(qth.isEmpty()){
return;
}
addMessageText(qth);
}
void MainWindow::on_snrMacroButton_clicked(){