This commit is contained in:
DanielSvoboda 2025-02-28 11:06:57 -03:00
parent 83e0a40bd0
commit 8695aa7a6c

View File

@ -190,8 +190,19 @@ public:
QDesktopServices::openUrl(QUrl::fromLocalFile(logPath)); QDesktopServices::openUrl(QUrl::fromLocalFile(logPath));
#endif #endif
} else { } else {
QMessageBox::information(nullptr, tr("Error"), QMessageBox msgBox;
QString(tr("No log file found for this game!"))); 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));
}
} }
} }
} }