1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 07:48:11 +00:00

SystemMonitor: Keep selected row in ProcessMemoryMapWidget

The process memory view loses the selected row when it's redrawn. Call
update() instead of invalidate() to fix this.
This commit is contained in:
David Smith 2022-07-23 00:54:17 +02:00 committed by Linus Groh
parent 2d681279d4
commit 9ca580aac6

View file

@ -123,7 +123,7 @@ void ProcessMemoryMapWidget::set_pid(pid_t pid)
void ProcessMemoryMapWidget::refresh()
{
if (m_pid != -1)
m_json_model->invalidate();
m_json_model->update();
}
}