1
0
mirror of https://github.com/saitohirga/WSJT-X.git synced 2025-03-21 03:28:59 -04:00

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

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"),

View File

@ -236,6 +236,7 @@ private slots:
void on_reset_cabrillo_log_action_triggered ();
void on_actionErase_wsjtx_log_adi_triggered();
void on_actionErase_WSPR_hashtable_triggered();
void on_actionErase_list_of_Q65_callers_triggered();
void on_actionExport_Cabrillo_log_triggered();
void startTx2();
void startP1();

View File

@ -3168,6 +3168,7 @@ QPushButton[state="ok"] {
<addaction name="actionErase_ALL_TXT"/>
<addaction name="actionErase_wsjtx_log_adi"/>
<addaction name="actionErase_WSPR_hashtable"/>
<addaction name="actionErase_list_of_Q65_callers"/>
<addaction name="reset_cabrillo_log_action"/>
<addaction name="actionExport_Cabrillo_log"/>
<addaction name="actionOpen_log_directory"/>
@ -3813,6 +3814,11 @@ QPushButton[state=&quot;ok&quot;] {
<string>Quick-Start Guide to WSJT-X 2.7 and QMAP</string>
</property>
</action>
<action name="actionErase_list_of_Q65_callers">
<property name="text">
<string>Erase list of Q65 callers</string>
</property>
</action>
</widget>
<layoutdefault spacing="6" margin="11"/>
<customwidgets>