summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/ProcessChooser.h
diff options
context:
space:
mode:
authorsin-ack <sin-ack@users.noreply.github.com>2021-08-08 09:23:48 +0000
committerAndreas Kling <kling@serenityos.org>2021-08-08 13:46:27 +0200
commit99dfab08c92cbda09fe94950899b19cb616b355e (patch)
tree220dfdf0dd1427a6a4f763716cf27f7ffc8836d2 /Userland/Libraries/LibGUI/ProcessChooser.h
parent16c38788c3a31c2b5d02ceac0e7cc5004fbc2719 (diff)
downloadserenity-99dfab08c92cbda09fe94950899b19cb616b355e.zip
LibGUI: Correctly call update() in ProcessChooser
After the update -> invalidate change a couple places broke when update() was supposed to be manually called. This instance was not marked virtual or override, which made it hard to detect. This commit makes sure that update() on the original model is called when the RunningProcessesModel needs an update.
Diffstat (limited to 'Userland/Libraries/LibGUI/ProcessChooser.h')
-rw-r--r--Userland/Libraries/LibGUI/ProcessChooser.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGUI/ProcessChooser.h b/Userland/Libraries/LibGUI/ProcessChooser.h
index 78daa8fba7..412648bbde 100644
--- a/Userland/Libraries/LibGUI/ProcessChooser.h
+++ b/Userland/Libraries/LibGUI/ProcessChooser.h
@@ -8,6 +8,7 @@
#include <LibCore/Timer.h>
#include <LibGUI/Dialog.h>
+#include <LibGUI/RunningProcessesModel.h>
namespace GUI {
@@ -30,6 +31,7 @@ private:
String m_button_label;
RefPtr<Gfx::Bitmap> m_window_icon;
RefPtr<TableView> m_table_view;
+ RefPtr<RunningProcessesModel> m_process_model;
bool m_refresh_enabled { true };
unsigned m_refresh_interval { 1000 };