UI: Avoid navigation with an active dialog.

Cleaning up next.
This commit is contained in:
Unknown W. Brackets committed 2017-12-02 11:55:05 -08:00
1 parent 68a5861f60
commit e945ad6ac1
5 files changed
+23 -29

No files matched your search

+1 -1
View File
@@ -256,7 +256,7 @@ void ControlMappingScreen::sendMessage(const char *message, const char *value) {
// Always call the base class method first to handle the most common messages.
UIDialogScreenWithBackground::sendMessage(message, value);
if (!strcmp(message, "settings")) {
if (!strcmp(message, "settings") && screenManager()->topScreen() == this) {
UpdateUIState(UISTATE_MENU);
screenManager()->push(new GameSettingsScreen(""));
}