Selaa lähdekoodia

Taskbar: Remove window buttons from the taskbar when appropriate

Andreas Kling 5 vuotta sitten
vanhempi
commit
df837562ad
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      Applications/Taskbar/WindowList.h

+ 2 - 0
Applications/Taskbar/WindowList.h

@@ -15,6 +15,8 @@ public:
 
     ~Window()
     {
+        if (m_button)
+            m_button->remove_from_parent();
     }
 
     WindowIdentifier identifier() const { return m_identifier; }