diff --git a/shuttlesetup.cpp b/shuttlesetup.cpp index 10ae91f..28d01e5 100644 --- a/shuttlesetup.cpp +++ b/shuttlesetup.cpp @@ -35,7 +35,7 @@ void shuttleSetup::mousePressed(QPoint p) bool found = false; for (BUTTON& b : *buttons) { - if (b.pos.contains(p)) + if (b.dev == currentDevice && b.pos.contains(p)) { found = true; currentButton = &b; @@ -144,16 +144,18 @@ void shuttleSetup::newDevice(unsigned char devType, QVector