From 0a061d4314e172529298a6c1c65e89dde6dec9f3 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 9 Aug 2019 23:48:44 +0200 Subject: [PATCH] GLabel: Repaint immediately on icon change --- Libraries/LibGUI/GLabel.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Libraries/LibGUI/GLabel.cpp b/Libraries/LibGUI/GLabel.cpp index 05fb77843f5..82f3e7b0ec3 100644 --- a/Libraries/LibGUI/GLabel.cpp +++ b/Libraries/LibGUI/GLabel.cpp @@ -19,7 +19,10 @@ GLabel::~GLabel() void GLabel::set_icon(GraphicsBitmap* icon) { + if (m_icon == icon) + return; m_icon = icon; + update(); } void GLabel::set_text(const StringView& text)