Skip to content

Commit

Permalink
Bugfix: check for focus disallowed delete action triggered from toolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
joern274 committed Oct 24, 2023
1 parent 4b35a0f commit d7cf2e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/gui/src/grouping/grouping_manager_widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,8 @@ namespace hal

void GroupingManagerWidget::handleDeleteGroupingClicked()
{
if (!hasFocus() && !mGroupingTableView->hasFocus()) return;
if (sender() != mDeleteAction &&
!hasFocus() && !mGroupingTableView->hasFocus()) return;

QModelIndex current = mGroupingTableView->currentIndex();
if (!current.isValid()) return;
Expand Down

0 comments on commit d7cf2e0

Please sign in to comment.