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
This commit is contained in:
Bill Somerville
2014-10-04 11:47:03 +00:00
parent 42302834f2
commit c40cec50de
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>
@@ -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