mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-24 06:51:17 +01:00
Debugger: keep breakpoints ordered by address
Previously, breakpoints would move to the end of the list whenever they were edited.
This commit is contained in:
parent
7645cbff9a
commit
f1366a4546
@ -207,8 +207,11 @@ void BreakpointWidget::OnClicked(QTableWidgetItem* item)
|
|||||||
if (!item)
|
if (!item)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (item->column() == ADDRESS_COLUMN || item->column() == END_ADDRESS_COLUMN)
|
if (item->column() == SYMBOL_COLUMN || item->column() == ADDRESS_COLUMN ||
|
||||||
|
item->column() == END_ADDRESS_COLUMN)
|
||||||
|
{
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const u32 address = static_cast<u32>(m_table->item(item->row(), 0)->data(ADDRESS_ROLE).toUInt());
|
const u32 address = static_cast<u32>(m_table->item(item->row(), 0)->data(ADDRESS_ROLE).toUInt());
|
||||||
|
|
||||||
@ -351,6 +354,8 @@ void BreakpointWidget::Update()
|
|||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_table->sortItems(ADDRESS_COLUMN);
|
||||||
|
|
||||||
// Memory Breakpoints
|
// Memory Breakpoints
|
||||||
for (const auto& mbp : memchecks.GetMemChecks())
|
for (const auto& mbp : memchecks.GetMemChecks())
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user