From 04e29bcb3ef2a4717335f131409ee807fc5768fa Mon Sep 17 00:00:00 2001 From: Liderate Date: Sat, 18 May 2024 22:52:49 -0400 Subject: [PATCH] Directly open logs and crashDumps folders from diagnostics settings --- src/settingsdialog.ui | 2 +- src/settingsdialogdiagnostics.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/settingsdialog.ui b/src/settingsdialog.ui index 0c611ff09..84b5c343b 100644 --- a/src/settingsdialog.ui +++ b/src/settingsdialog.ui @@ -2208,7 +2208,7 @@ For the other games this is not a sufficient replacement for AI! - Hint: right click link and copy link location + Click a link to open the location diff --git a/src/settingsdialogdiagnostics.cpp b/src/settingsdialogdiagnostics.cpp index 012a33488..ff22f919b 100644 --- a/src/settingsdialogdiagnostics.cpp +++ b/src/settingsdialogdiagnostics.cpp @@ -15,15 +15,15 @@ DiagnosticsSettingsTab::DiagnosticsSettingsTab(Settings& s, SettingsDialog& d) ui->dumpsMaxEdit->setValue(settings().diagnostics().maxCoreDumps()); - QString logsPath = qApp->property("dataPath").toString() + "/" + - QString::fromStdWString(AppConfig::logPath()); + QString logsPath = QUrl::fromLocalFile(qApp->property("dataPath").toString() + "/" + + QString::fromStdWString(AppConfig::logPath())).toString(); ui->diagnosticsExplainedLabel->setText( ui->diagnosticsExplainedLabel->text() .replace("LOGS_FULL_PATH", logsPath) .replace("LOGS_DIR", QString::fromStdWString(AppConfig::logPath())) .replace("DUMPS_FULL_PATH", - QString::fromStdWString(OrganizerCore::getGlobalCoreDumpPath())) + QUrl::fromLocalFile(QString::fromStdWString(OrganizerCore::getGlobalCoreDumpPath())).toString()) .replace("DUMPS_DIR", QString::fromStdWString(AppConfig::dumpsDir()))); }