Skip to content

Commit e30a462

Browse files
committed
Fix HideSelectedMacro() hiding the incorrect index
1 parent e2f4dca commit e30a462

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/macro-core/macro-selection.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ void MacroSelection::HideSelectedMacro()
6464
if (idx == -1) {
6565
return;
6666
}
67-
// +1 for "select macro" entry
68-
qobject_cast<QListView *>(view())->setRowHidden(idx + 1, true);
67+
68+
qobject_cast<QListView *>(view())->setRowHidden(idx, true);
6969
}
7070

7171
void MacroSelection::ShowAllMacros()

0 commit comments

Comments
 (0)