mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2026-06-14 03:39:10 -04:00
Add "Erase WSPR hashtable" to the Filemenu.
This commit is contained in:
@@ -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 ()));
|
||||
|
||||
Reference in New Issue
Block a user