mirror of
https://github.com/x64dbg/x64dbg.git
synced 2024-11-26 22:30:22 +00:00
Improve memory map reselection after sorting
This commit is contained in:
parent
5e9425045d
commit
f361ef3f82
@ -205,7 +205,7 @@ void MemoryMapView::selectionChangedSlot(duint index)
|
||||
mSelectionStart = getCellUserdata(mSelection.firstSelectedIndex, ColAddress);
|
||||
mSelectionEnd = mSelectionStart + getCellUserdata(mSelection.firstSelectedIndex, ColSize);
|
||||
mSelectionCount = mSelection.toIndex - mSelection.fromIndex;
|
||||
mSelectionSort = mSort.column;
|
||||
mSelectionSort = mSort;
|
||||
}
|
||||
|
||||
void MemoryMapView::fixSelectionRangeSlot()
|
||||
@ -219,7 +219,7 @@ void MemoryMapView::fixSelectionRangeSlot()
|
||||
// Restore the selection
|
||||
mSelection.firstSelectedIndex = row;
|
||||
mSelection.fromIndex = mSelection.toIndex = row;
|
||||
if(mSelectionSort == mSort.column)
|
||||
if(mSelectionSort.column == mSort.column && mSelectionSort.ascending == mSort.ascending)
|
||||
{
|
||||
mSelection.toIndex += mSelectionCount;
|
||||
updateViewport();
|
||||
|
@ -111,5 +111,5 @@ private:
|
||||
duint mSelectionStart = 0;
|
||||
duint mSelectionEnd = 0;
|
||||
duint mSelectionCount = 0;
|
||||
duint mSelectionSort = -1;
|
||||
SortData mSelectionSort;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user