diff options
| author | Mikaƫl Capelle <capelle.mikael@gmail.com> | 2021-01-13 12:10:53 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-13 12:10:53 +0100 |
| commit | 8338ea6ff42fcbc8b2475b8504d98e02b11a7d75 (patch) | |
| tree | ce0a1a726859a5a2c4ec1a57549b853217bd6f24 /src/mainwindow.cpp | |
| parent | 9e663691b0ad23faa979361facb416b7ea0fb08d (diff) | |
| parent | f32e74c2a78ae2fea6c1f825900287202778bf59 (diff) | |
Merge pull request #1358 from Holt59/loglist-copy
Allow extended selection in log list and implement copy.
Diffstat (limited to 'src/mainwindow.cpp')
| -rw-r--r-- | src/mainwindow.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index ce98772a..f7ff7b04 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -2317,12 +2317,6 @@ void MainWindow::openInstanceFolder() shell::Explore(dataPath); } -void MainWindow::openLogsFolder() -{ - QString logsPath = qApp->property("dataPath").toString() + "/" + QString::fromStdWString(AppConfig::logPath()); - shell::Explore(logsPath); -} - void MainWindow::openInstallFolder() { shell::Explore(qApp->applicationDirPath()); @@ -2400,7 +2394,7 @@ QMenu *MainWindow::openFolderMenu() FolderMenu->addAction(tr("Open MO2 Install folder"), this, SLOT(openInstallFolder())); FolderMenu->addAction(tr("Open MO2 Plugins folder"), this, SLOT(openPluginsFolder())); FolderMenu->addAction(tr("Open MO2 Stylesheets folder"), this, SLOT(openStylesheetsFolder())); - FolderMenu->addAction(tr("Open MO2 Logs folder"), this, SLOT(openLogsFolder())); + FolderMenu->addAction(tr("Open MO2 Logs folder"), [=] { ui->logList->openLogsFolder(); }); return FolderMenu; } |
