From 0a0ad3f9e29d7ed3bf7fd7e9a0b9c37b91958bd8 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sat, 31 May 2025 03:00:59 +1000 Subject: [PATCH] Qt: Improve clarity of unknown dump hashes --- src/duckstation-qt/gamesummarywidget.cpp | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/src/duckstation-qt/gamesummarywidget.cpp b/src/duckstation-qt/gamesummarywidget.cpp index 8f864f026..07aebe21a 100644 --- a/src/duckstation-qt/gamesummarywidget.cpp +++ b/src/duckstation-qt/gamesummarywidget.cpp @@ -594,12 +594,19 @@ void GameSummaryWidget::onComputeHashClicked() if (found_serial != m_ui.serial->text().toStdString()) { - const QString mismatch_str = - tr("Serial Mismatch: %1 vs %2").arg(QString::fromStdString(found_serial)).arg(m_ui.serial->text()); - if (!text.isEmpty()) - text = QStringLiteral("%1 | %2").arg(mismatch_str).arg(text); + if (found_serial.empty()) + { + text = tr("No known dump found that matches this hash."); + } else - text = mismatch_str; + { + const QString mismatch_str = + tr("Serial Mismatch: %1 vs %2").arg(QString::fromStdString(found_serial)).arg(m_ui.serial->text()); + if (!text.isEmpty()) + text = QStringLiteral("%1 | %2").arg(mismatch_str).arg(text); + else + text = mismatch_str; + } } setRevisionText(text);