summaryrefslogtreecommitdiff
path: root/Userland/Applications/SystemMonitor
diff options
context:
space:
mode:
authorDavid Smith <davidsmith@MacBook-Air-som-tillhor-David.local>2022-07-23 00:54:17 +0200
committerLinus Groh <mail@linusgroh.de>2022-07-24 14:05:35 +0100
commit9ca580aac6b3905143fb64c7a7a1f02083eaf9d7 (patch)
treefacaede2bbccda0d15d6bc469ce2e5312e079aed /Userland/Applications/SystemMonitor
parent2d681279d4d4d7a0548a0c0c9161ffe4fd94f4a5 (diff)
downloadserenity-9ca580aac6b3905143fb64c7a7a1f02083eaf9d7.zip
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.
Diffstat (limited to 'Userland/Applications/SystemMonitor')
-rw-r--r--Userland/Applications/SystemMonitor/ProcessMemoryMapWidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Applications/SystemMonitor/ProcessMemoryMapWidget.cpp b/Userland/Applications/SystemMonitor/ProcessMemoryMapWidget.cpp
index 6625397af6..3ec4d021d0 100644
--- a/Userland/Applications/SystemMonitor/ProcessMemoryMapWidget.cpp
+++ b/Userland/Applications/SystemMonitor/ProcessMemoryMapWidget.cpp
@@ -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();
}
}