Skip to content

Commit

Permalink
use node instead
Browse files Browse the repository at this point in the history
  • Loading branch information
camila314 committed Aug 25, 2024
1 parent 22c7baf commit aa68881
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/GUI/MemWatcher/MemWatchWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,7 @@ void MemWatchWidget::onMemWatchContextMenuRequested(const QPoint& pos)
contextMenu->addSeparator();
}

MemWatchEntry* const entry{MemWatchModel::getEntryFromIndex(index)};
if (!entry || node->isGroup()) {
if (!node || node->isGroup()) {
QAction* const addGroup{new QAction(tr("Add &group"), this)};
connect(addGroup, &QAction::triggered, this, &MemWatchWidget::onAddGroup);
contextMenu->addAction(addGroup);
Expand All @@ -285,6 +284,7 @@ void MemWatchWidget::onMemWatchContextMenuRequested(const QPoint& pos)
connect(copy, &QAction::triggered, this, [this] { copySelectedWatchesToClipBoard(); });
contextMenu->addAction(copy);

MemWatchEntry* const entry{MemWatchModel::getEntryFromIndex(index)};
if (entry)
{
if (entry->isBoundToPointer())
Expand Down

0 comments on commit aa68881

Please sign in to comment.