From 4d537761017ab83171c12e647520a7b240229704 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Mon, 13 Feb 2023 04:01:29 -0500 Subject: [PATCH] When settings::lockModules is enabled, don't select modules on click. --- src/app/ModuleWidget.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/ModuleWidget.cpp b/src/app/ModuleWidget.cpp index f71f75bb..de070da5 100644 --- a/src/app/ModuleWidget.cpp +++ b/src/app/ModuleWidget.cpp @@ -391,6 +391,7 @@ void ModuleWidget::onButton(const ButtonEvent& e) { // If module positions are locked, don't consume left-click if (settings::lockModules) { + e.consume(NULL); return; } @@ -420,6 +421,7 @@ void ModuleWidget::onButton(const ButtonEvent& e) { // If module positions are locked, don't consume left-click if (settings::lockModules) { + e.consume(NULL); return; }