This commit is contained in:
SamGondelman 2016-06-07 15:15:42 -07:00
parent 5daccba235
commit 545dda0a98

View file

@ -126,7 +126,7 @@ void UserInputMapper::removeDevice(int deviceID) {
auto device = proxyEntry->second;
qCDebug(controllers) << "Unregistering input device <" << device->getName() << "> deviceID = " << deviceID;
if (!_deviceCounts.contains(device->getName())) {
if (_deviceCounts.contains(device->getName())) {
_deviceCounts[device->getName()] -= 1;
}