ソースを参照

LibCore: Allow widgets to reparent

Torstennator 1 年間 前
コミット
38974b4128
1 ファイル変更1 行追加0 行削除
  1. 1 0
      Userland/Libraries/LibCore/EventReceiver.h

+ 1 - 0
Userland/Libraries/LibCore/EventReceiver.h

@@ -134,6 +134,7 @@ public:
     {
         if (m_parent)
             m_parent->remove_child(*this);
+        m_parent = nullptr;
     }
 
     template<class T, class... Args>