mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-15 06:52:15 -07:00
Message on get replay code failure
This commit is contained in:
parent
3c6ca2af43
commit
7f287748a5
1 changed files with 3 additions and 1 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue