From 8695aa7a6c59aae840b2156b7ee689a16de511db Mon Sep 17 00:00:00 2001 From: DanielSvoboda Date: Fri, 28 Feb 2025 11:06:57 -0300 Subject: [PATCH] + --- src/qt_gui/gui_context_menus.h | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/qt_gui/gui_context_menus.h b/src/qt_gui/gui_context_menus.h index f0b2323f9..8a6e07847 100644 --- a/src/qt_gui/gui_context_menus.h +++ b/src/qt_gui/gui_context_menus.h @@ -190,8 +190,19 @@ public: QDesktopServices::openUrl(QUrl::fromLocalFile(logPath)); #endif } else { - QMessageBox::information(nullptr, tr("Error"), - QString(tr("No log file found for this game!"))); + QMessageBox msgBox; + msgBox.setIcon(QMessageBox::Information); + msgBox.setText(tr("No log file found for this game!")); + + QPushButton* okButton = msgBox.addButton(QMessageBox::Ok); + QPushButton* openFolderButton = + msgBox.addButton(tr("Open Log Folder"), QMessageBox::ActionRole); + + msgBox.exec(); + + if (msgBox.clickedButton() == openFolderButton) { + QDesktopServices::openUrl(QUrl::fromLocalFile(logPath)); + } } } }