diff --git a/plugins/gui/src/grouping/grouping_manager_widget.cpp b/plugins/gui/src/grouping/grouping_manager_widget.cpp index 7a19e6e76b0..73f785aeb82 100644 --- a/plugins/gui/src/grouping/grouping_manager_widget.cpp +++ b/plugins/gui/src/grouping/grouping_manager_widget.cpp @@ -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;