Skip to content

Commit

Permalink
Make it work for groups too
Browse files Browse the repository at this point in the history
  • Loading branch information
camila314 committed Aug 25, 2024
1 parent 1315a7d commit 22c7baf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/GUI/MemWatcher/MemWatchWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ void MemWatchWidget::onMemWatchContextMenuRequested(const QPoint& pos)
}

MemWatchEntry* const entry{MemWatchModel::getEntryFromIndex(index)};
if (!entry) {
if (!entry || node->isGroup()) {
QAction* const addGroup{new QAction(tr("Add &group"), this)};
connect(addGroup, &QAction::triggered, this, &MemWatchWidget::onAddGroup);
contextMenu->addAction(addGroup);
Expand Down

0 comments on commit 22c7baf

Please sign in to comment.