Skip to content

Commit

Permalink
Mark session with unsaved changes when current selection is grouped.
Browse files Browse the repository at this point in the history
This was an oversight in the recent grouping functionality (introduced
in e162fbe), where it was overlooked to invalidate the document
after the select was moved into a new group.
  • Loading branch information
cristian64 committed May 26, 2024
1 parent bb06ab4 commit d6c2b8c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Source/GUI/MemWatcher/MemWatchWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,13 @@ void MemWatchWidget::setSelectedWatchesBase(MemWatchEntry* entry, Common::MemBas

void MemWatchWidget::groupCurrentSelection()
{
m_watchModel->groupSelection(simplifySelection());
const QModelIndexList indexes{simplifySelection()};
if (indexes.isEmpty())
return;

m_watchModel->groupSelection(indexes);

m_hasUnsavedChanges = true;
}

void MemWatchWidget::cutSelectedWatchesToClipBoard()
Expand Down

0 comments on commit d6c2b8c

Please sign in to comment.