Message on get replay code failure

This commit is contained in:
RickyRister 2025-08-16 20:56:00 -07:00
parent 3c6ca2af43
commit 7f287748a5

View file

@ -530,8 +530,10 @@ void TabReplays::actGetReplayCode()
void TabReplays::getReplayCodeFinished(const Response &r, const CommandContainer & /*commandContainer*/)
{
if (r.response_code() != Response::RespOk)
if (r.response_code() != Response::RespOk) {
QMessageBox::warning(this, tr("Failed"), tr("Could not get replay code."));
return;
}
const Response_ReplayGetCode &resp = r.GetExtension(Response_ReplayGetCode::ext);
QString code = QString::fromStdString(resp.replay_code());