Add "Erase WSPR hashtable" to the Filemenu.

This commit is contained in:
Joe Taylor 2019-01-08 15:41:59 -05:00
parent 5adc211d1a
commit 5f38d30c75
3 changed files with 18 additions and 0 deletions

View File

@ -6190,6 +6190,17 @@ void MainWindow::on_actionErase_wsjtx_log_adi_triggered()
}
}
void MainWindow::on_actionErase_WSPR_hashtable_triggered()
{
int ret = MessageBox::query_message(this, tr ("Confirm Erase"),
tr ("Are you sure you want to erase the WSPR hashtable?"));
if(ret==MessageBox::Yes) {
QFile f {m_config.writeable_data_dir().absoluteFilePath("hashtable.txt")};
f.remove();
}
}
void MainWindow::on_actionOpen_log_directory_triggered ()
{
QDesktopServices::openUrl (QUrl::fromLocalFile (m_config.writeable_data_dir ().absolutePath ()));

View File

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

View File

@ -2636,6 +2636,7 @@ list. The list can be maintained in Settings (F2).</string>
<addaction name="actionDelete_all_wav_files_in_SaveDir"/>
<addaction name="actionErase_ALL_TXT"/>
<addaction name="actionErase_wsjtx_log_adi"/>
<addaction name="actionErase_WSPR_hashtable"/>
<addaction name="reset_cabrillo_log_action"/>
<addaction name="actionExport_Cabrillo_log"/>
<addaction name="actionOpen_log_directory"/>
@ -3332,6 +3333,11 @@ list. The list can be maintained in Settings (F2).</string>
<string>Contest log</string>
</property>
</action>
<action name="actionErase_WSPR_hashtable">
<property name="text">
<string>Erase WSPR hashtable</string>
</property>
</action>
</widget>
<layoutdefault spacing="6" margin="11"/>
<customwidgets>