From 97553b9d93545d64bee6c522c715943863dde5f4 Mon Sep 17 00:00:00 2001 From: thrust26 Date: Wed, 24 Jan 2018 15:55:25 +0100 Subject: [PATCH] Help dialog closes with ESC again --- src/gui/AboutDialog.cxx | 2 +- src/gui/HelpDialog.cxx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/AboutDialog.cxx b/src/gui/AboutDialog.cxx index d5b124fbe..76410d349 100644 --- a/src/gui/AboutDialog.cxx +++ b/src/gui/AboutDialog.cxx @@ -61,7 +61,7 @@ AboutDialog::AboutDialog(OSystem& osystem, DialogContainer& parent, new ButtonWidget(this, font, xpos, ypos, buttonWidth, buttonHeight, "Close", GuiObject::kCloseCmd); wid.push_back(b); - addOKWidget(b); addCancelWidget(b); + addCancelWidget(b); xpos = 5; ypos = 5 + _th; myTitle = new StaticTextWidget(this, font, xpos, ypos, _w - xpos * 2, fontHeight, diff --git a/src/gui/HelpDialog.cxx b/src/gui/HelpDialog.cxx index 5a6d0d1f7..5235c09d8 100644 --- a/src/gui/HelpDialog.cxx +++ b/src/gui/HelpDialog.cxx @@ -60,6 +60,7 @@ HelpDialog::HelpDialog(OSystem& osystem, DialogContainer& parent, new ButtonWidget(this, font, xpos, ypos, buttonWidth, buttonHeight, "Close", GuiObject::kCloseCmd); wid.push_back(b); + addCancelWidget(b); xpos = 5; ypos = 5 + _th; myTitle = new StaticTextWidget(this, font, xpos, ypos, _w - 10, fontHeight,