summaryrefslogtreecommitdiff
path: root/Userland/Applications
diff options
context:
space:
mode:
authormartinfalisse <martinmotteditfalisse@gmail.com>2022-02-17 08:19:38 +0100
committerAndreas Kling <kling@serenityos.org>2022-02-17 20:09:47 +0100
commitb6c3fad0780faf00802f24797a80b01459f24e2e (patch)
treec21932ebfe8ce9fd6fb49a8ec1715caa690961cb /Userland/Applications
parentfd24782d856ebe0f393c8e798bad7a7c2ab4da81 (diff)
downloadserenity-b6c3fad0780faf00802f24797a80b01459f24e2e.zip
LibGUI: JsonArrayModel update without invalidating indices
Add function to update a JsonArrayModel without invalidating it. Now, for example in the SystemMonitor in the Network tab, a selected line will not be deselected whenever the data is updated.
Diffstat (limited to 'Userland/Applications')
-rw-r--r--Userland/Applications/SystemMonitor/NetworkStatisticsWidget.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Applications/SystemMonitor/NetworkStatisticsWidget.cpp b/Userland/Applications/SystemMonitor/NetworkStatisticsWidget.cpp
index 89c5414f62..4a42fe4ef6 100644
--- a/Userland/Applications/SystemMonitor/NetworkStatisticsWidget.cpp
+++ b/Userland/Applications/SystemMonitor/NetworkStatisticsWidget.cpp
@@ -114,7 +114,7 @@ NetworkStatisticsWidget::NetworkStatisticsWidget()
void NetworkStatisticsWidget::update_models()
{
- m_adapter_model->invalidate();
- m_tcp_socket_model->invalidate();
- m_udp_socket_model->invalidate();
+ m_adapter_model->update();
+ m_tcp_socket_model->update();
+ m_udp_socket_model->update();
}