mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-29 19:55:37 +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 &&
|
||||
input.id == SDLK_ESCAPE) {
|
||||
if (mDoneCallback)
|
||||
mDoneCallback();
|
||||
// Cancel the configuration.
|
||||
delete this; // Delete GUI element.
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue