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.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx-1.4@4470 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Bill Somerville
2014-10-04 11:44:54 +00:00
parent fc33d1b4c5
commit da7da2b2b4
3 changed files with 15 additions and 0 deletions
+8
View File
@@ -9,6 +9,9 @@
#include <QLineEdit>
#include <QRegExpValidator>
#include <QRegExp>
#include <QDesktopServices>
#include <QUrl>
#include <QDir>
#include <QDebug>
#include <QtConcurrent/QtConcurrentRun>
@@ -2493,6 +2496,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