summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2021-01-12 20:34:02 +0100
committerMikaël Capelle <capelle.mikael@gmail.com>2021-01-13 09:17:05 +0100
commitf32e74c2a78ae2fea6c1f825900287202778bf59 (patch)
treece0a1a726859a5a2c4ec1a57549b853217bd6f24 /src/mainwindow.cpp
parent9e663691b0ad23faa979361facb416b7ea0fb08d (diff)
Allow extended selection in log list and implement copy.
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp8
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;
}