mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-20 06:50:05 +01:00
tools: fix a replay exception when a recording has an empty quirks list
Fixes https://gitlab.freedesktop.org/libinput/libinput/-/issues/520
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
(cherry picked from commit e926d3d919)
This commit is contained in:
parent
768880d7b9
commit
2e5e74c0bc
1 changed files with 6 additions and 1 deletions
|
|
@ -218,7 +218,12 @@ def create_device_quirk(device):
|
|||
def setup_quirks(recording):
|
||||
devices = fetch(recording, 'devices')
|
||||
overrides = None
|
||||
quirks = [create_device_quirk(d) for d in devices if 'quirks' in d]
|
||||
quirks = []
|
||||
for d in devices:
|
||||
if 'quirks' in d:
|
||||
quirk = create_device_quirk(d)
|
||||
if quirk:
|
||||
quirks.append(quirk)
|
||||
if not quirks:
|
||||
return None
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue