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)