From b704216553269a43ee941d67642c7341f24cd547 Mon Sep 17 00:00:00 2001 From: Alexander Choi <32470094+AlexanderJChoi@users.noreply.github.com> Date: Sun, 15 Sep 2024 14:55:30 -0600 Subject: [PATCH] fix macro shortcuts so that Ctrl+1 is not double-assigned (#5112) --- cockatrice/src/player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cockatrice/src/player.cpp b/cockatrice/src/player.cpp index 8d0c691ca..70fac1eb5 100644 --- a/cockatrice/src/player.cpp +++ b/cockatrice/src/player.cpp @@ -1037,7 +1037,7 @@ void Player::initSayMenu() for (int i = 0; i < count; ++i) { auto *newAction = new QAction(SettingsCache::instance().messages().getMessageAt(i), this); - if (i <= 10) { + if (i < 10) { newAction->setShortcut(QKeySequence("Ctrl+" + QString::number((i + 1) % 10))); } connect(newAction, SIGNAL(triggered()), this, SLOT(actSayMessage()));