1
0
mirror of synced 2024-11-28 09:30:51 +01:00

ux: Fix jumping to addresses when base address is not 0x00

This commit is contained in:
WerWolv 2021-04-16 13:24:34 +02:00
parent c3e41710c7
commit 7795872be1

View File

@ -140,11 +140,12 @@ namespace hex {
return;
provider->setCurrentPage(page.value());
this->m_memoryEditor.GotoAddrAndHighlight(region.address, region.address + region.size - 1);
u64 start = region.address + provider->getBaseAddress();
this->m_memoryEditor.GotoAddrAndHighlight(start, start + region.size - 1);
EventManager::post<EventRegionSelected>(region);
});
EventManager::subscribe<EventProjectFileLoad>(this, [this]() {
EventManager::subscribe<EventProjectFileLoad>(this, []() {
EventManager::post<EventFileDropped>(ProjectFile::getFilePath());
});