mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-03-06 14:27:43 +00:00
Fixed an issue where aborting input configuration when using the --force-input-config command line option would crash the application.
This commit is contained in:
parent
6c3f5e70bd
commit
786d8bd57c
|
@ -107,6 +107,8 @@ bool GuiDetectDevice::input(InputConfig* config, Input input)
|
||||||
{
|
{
|
||||||
if (!mFirstRun && input.device == DEVICE_KEYBOARD && input.type == TYPE_KEY && input.value &&
|
if (!mFirstRun && input.device == DEVICE_KEYBOARD && input.type == TYPE_KEY && input.value &&
|
||||||
input.id == SDLK_ESCAPE) {
|
input.id == SDLK_ESCAPE) {
|
||||||
|
if (mDoneCallback)
|
||||||
|
mDoneCallback();
|
||||||
// Cancel the configuration.
|
// Cancel the configuration.
|
||||||
delete this; // Delete GUI element.
|
delete this; // Delete GUI element.
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue