From df837562adf51a3ad2da59f61ed45e0ad5df5355 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 22 Sep 2019 00:41:52 +0200 Subject: [PATCH] Taskbar: Remove window buttons from the taskbar when appropriate --- Applications/Taskbar/WindowList.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Applications/Taskbar/WindowList.h b/Applications/Taskbar/WindowList.h index ae1f428680..41c7e00f62 100644 --- a/Applications/Taskbar/WindowList.h +++ b/Applications/Taskbar/WindowList.h @@ -15,6 +15,8 @@ public: ~Window() { + if (m_button) + m_button->remove_from_parent(); } WindowIdentifier identifier() const { return m_identifier; }