From e30a4623c5aa5e88f43ade69740c3d415ec96529 Mon Sep 17 00:00:00 2001 From: WarmUpTill Date: Sat, 25 Mar 2023 20:01:48 +0100 Subject: [PATCH] Fix HideSelectedMacro() hiding the incorrect index --- src/macro-core/macro-selection.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/macro-core/macro-selection.cpp b/src/macro-core/macro-selection.cpp index 233c3ffd..5d8d80b7 100644 --- a/src/macro-core/macro-selection.cpp +++ b/src/macro-core/macro-selection.cpp @@ -64,8 +64,8 @@ void MacroSelection::HideSelectedMacro() if (idx == -1) { return; } - // +1 for "select macro" entry - qobject_cast(view())->setRowHidden(idx + 1, true); + + qobject_cast(view())->setRowHidden(idx, true); } void MacroSelection::ShowAllMacros()