From e2b39b6b8a719bee16480cfe5e155ea6a5d7a1d6 Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Sat, 4 Oct 2014 11:47:03 +0000 Subject: [PATCH] Menu action to open the log directory Since the log files have moved to a hidden directory a menu action to open the logs directory in a suitable system applicaiton is needed. Added "Open log directory" to File manu bar pop up menu. Merged from wsjtx-1.4 branch. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@4471 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- mainwindow.cpp | 8 ++++++++ mainwindow.h | 1 + mainwindow.ui | 6 ++++++ 3 files changed, 15 insertions(+) diff --git a/mainwindow.cpp b/mainwindow.cpp index 1230c8bfa..0c563527e 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -9,6 +9,9 @@ #include #include #include +#include +#include +#include #include #include @@ -2496,6 +2499,11 @@ void MainWindow::on_actionErase_wsjtx_log_adi_triggered() } } +void MainWindow::on_actionOpen_log_directory_triggered () +{ + QDesktopServices::openUrl (QUrl::fromLocalFile (m_config.data_path ().absolutePath ())); +} + bool MainWindow::gridOK(QString g) { bool b=g.mid(0,1).compare("A")>=0 and diff --git a/mainwindow.h b/mainwindow.h index 8dd0f31f2..04a1a0d5a 100644 --- a/mainwindow.h +++ b/mainwindow.h @@ -103,6 +103,7 @@ private slots: void on_actionOpen_next_in_directory_triggered(); void on_actionDecode_remaining_files_in_directory_triggered(); void on_actionDelete_all_wav_files_in_SaveDir_triggered(); + void on_actionOpen_log_directory_triggered (); void on_actionNone_triggered(); void on_actionSave_all_triggered(); void on_actionKeyboard_shortcuts_triggered(); diff --git a/mainwindow.ui b/mainwindow.ui index 0fb9ffb06..c6d890cc7 100644 --- a/mainwindow.ui +++ b/mainwindow.ui @@ -2294,6 +2294,7 @@ list. The list can be maintained in Settings (F2). + @@ -2692,6 +2693,11 @@ list. The list can be maintained in Settings (F2). Local User Guide + + + Open log directory + +