Add "Erase list of Q65 callers" to the File menu.

This commit is contained in:
Joe Taylor
2023-03-06 08:31:42 -05:00
parent f45369af8d
commit 4c3bf37294
3 changed files with 18 additions and 0 deletions
+11
View File
@@ -7666,6 +7666,17 @@ void MainWindow::on_actionErase_ALL_TXT_triggered() //Erase ALL.TXT
}
}
void MainWindow::on_actionErase_list_of_Q65_callers_triggered()
{
int ret = MessageBox::query_message (this, tr ("Confirm Erase"),
tr ("Are you sure you want to erase the list of Q65 callers?"));
if(ret==MessageBox::Yes) {
QFile f {m_config.writeable_data_dir ().absoluteFilePath ("tsil.3q")};
f.remove();
}
}
void MainWindow::on_reset_cabrillo_log_action_triggered ()
{
if (MessageBox::Yes == MessageBox::query_message (this, tr ("Confirm Reset"),