Show correct label for Editor mode in quit dialog, fix kaetemi/ryzomclassic#113

ryzomclassic-develop
kaetemi 4 years ago
parent 59c1c340b8
commit 9d722bb70f
No known key found for this signature in database
GPG Key ID: 9873C4D40BB479BC

@ -1152,7 +1152,7 @@ void CInterfaceManager::configureQuitDialogBox()
eltEdit->setActive(false);
if (eltCancel)
(safe_cast<CCtrlTextButton*>(eltCancel))->setText(sessionOwner ? CI18N::get("uittQuitCancel") : CI18N::get("uittQuitCancelEditor"));
(safe_cast<CCtrlTextButton*>(eltCancel))->setText(R2::getEditor().getMode() != R2::CEditor::EditionMode ? CI18N::get("uittQuitCancel") : CI18N::get("uittQuitCancelEditor"));
}
}

Loading…
Cancel
Save