From 1c52dc86eede604726e67155bf383e251b873beb Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 11 Apr 2021 12:40:39 +0200 Subject: [PATCH] SystemMonitor: Simplify executable icon lookup in ProcessModel --- Userland/Applications/SystemMonitor/ProcessModel.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Userland/Applications/SystemMonitor/ProcessModel.cpp b/Userland/Applications/SystemMonitor/ProcessModel.cpp index f5ad6d2382..8e5f737127 100644 --- a/Userland/Applications/SystemMonitor/ProcessModel.cpp +++ b/Userland/Applications/SystemMonitor/ProcessModel.cpp @@ -265,10 +265,7 @@ GUI::Variant ProcessModel::data(const GUI::ModelIndex& index, GUI::ModelRole rol case Column::Icon: { if (thread.current_state.kernel) return m_kernel_process_icon; - auto icon = GUI::FileIconProvider::icon_for_executable(thread.current_state.executable).bitmap_for_size(16); - if (!icon) - return GUI::Icon(); - return GUI::Icon(*icon); + return GUI::FileIconProvider::icon_for_executable(thread.current_state.executable); } case Column::PID: return thread.current_state.pid;