mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 21:58:48 +00:00
CodeViewWidget: Add WithDetailedUpdate to update CodeWidget
This used to also update the function calls and callers.
This commit is contained in:
parent
2f85b80b7b
commit
5f629abd8b
4 changed files with 21 additions and 7 deletions
|
@ -442,8 +442,19 @@ void CodeViewWidget::SetAddress(u32 address, SetAddressUpdate update)
|
|||
return;
|
||||
|
||||
m_address = address;
|
||||
if (update == SetAddressUpdate::WithUpdate)
|
||||
switch (update)
|
||||
{
|
||||
case SetAddressUpdate::WithoutUpdate:
|
||||
return;
|
||||
case SetAddressUpdate::WithUpdate:
|
||||
// Update the CodeViewWidget
|
||||
Update();
|
||||
break;
|
||||
case SetAddressUpdate::WithDetailedUpdate:
|
||||
// Update the CodeWidget's views (code view, function calls/callers, ...)
|
||||
emit UpdateCodeWidget();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void CodeViewWidget::ReplaceAddress(u32 address, ReplaceWith replace)
|
||||
|
@ -611,7 +622,7 @@ void CodeViewWidget::OnFollowBranch()
|
|||
if (!branch_addr)
|
||||
return;
|
||||
|
||||
SetAddress(branch_addr, SetAddressUpdate::WithUpdate);
|
||||
SetAddress(branch_addr, SetAddressUpdate::WithDetailedUpdate);
|
||||
}
|
||||
|
||||
void CodeViewWidget::OnRenameSymbol()
|
||||
|
@ -785,7 +796,7 @@ void CodeViewWidget::mousePressEvent(QMouseEvent* event)
|
|||
if (column(item) == CODE_VIEW_COLUMN_BREAKPOINT)
|
||||
ToggleBreakpoint();
|
||||
else
|
||||
SetAddress(addr, SetAddressUpdate::WithUpdate);
|
||||
SetAddress(addr, SetAddressUpdate::WithDetailedUpdate);
|
||||
|
||||
Update();
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue