From 6d0ed23b4469de23c9d93ab15329f10a8441fd29 Mon Sep 17 00:00:00 2001 From: Stephen Kennedy Date: Thu, 14 Aug 2008 23:38:13 +0000 Subject: Fixed crash when clicking on area of remap dialog with no button in svn-id: r33884 --- backends/keymapper/remap-dialog.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/backends/keymapper/remap-dialog.cpp b/backends/keymapper/remap-dialog.cpp index 0c9d29a7a1..a6917fea7d 100644 --- a/backends/keymapper/remap-dialog.cpp +++ b/backends/keymapper/remap-dialog.cpp @@ -187,6 +187,7 @@ void RemapDialog::handleCommand(GUI::CommandSender *sender, uint32 cmd, uint32 d } void RemapDialog::startRemapping(uint i) { + if (_topAction + i >= _currentActions.size()) return; _remapTimeout = getMillis() + kRemapTimeoutDelay; _activeRemapAction = _currentActions[_topAction + i].action; _keymapWidgets[i].keyButton->setLabel("..."); -- cgit v1.2.3