Update memory_viewer_panel.cpp

This commit is contained in:
trigger 2025-05-02 13:56:16 -07:00
parent c49ef8e311
commit b44aee789c

View file

@ -604,8 +604,9 @@ memory_viewer_panel::memory_viewer_panel(QWidget* parent, std::shared_ptr<CPUDis
{
if (auto fxo = g_fxo->try_get<memory_viewer_fxo>())
{
if (this == fxo->last_opened[m_type])
fxo->last_opened.erase(m_type);
auto it = fxo->last_opened.find(m_type);
if (it != fxo->last_opened.end() && it->second == this)
fxo->last_opened.erase(it);
}
});
}