Debugger: Fix RegistersView context menu.

- Always grab the address value from the actual register value column,
  rather than the one that's in fact under the mouse. Fixes the "Inspect"
  item sending you to inspect address 0 if you happened to right click over
  the register name rather than the value.
This commit is contained in:
Rene Gollent
2013-09-17 11:17:31 +02:00
parent a82e311cf1
commit 4ce4250be0
@@ -242,7 +242,7 @@ RegistersView::TableCellMouseDown(Table* table, int32 rowIndex,
return;
BVariant value;
if (!fRegisterTableModel->GetValueAt(rowIndex, columnIndex, value))
if (!fRegisterTableModel->GetValueAt(rowIndex, 1, value))
return;
BPopUpMenu* menu = new(std::nothrow)BPopUpMenu("Options");