Selaa lähdekoodia

LibGUI: Reify children of root when invalidating in FileSystemModel

This ensures that the children of root also get watched
Adam Harald Jørgensen 1 vuosi sitten
vanhempi
commit
d1da5b1f0d
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      Userland/Libraries/LibGUI/FileSystemModel.cpp

+ 2 - 0
Userland/Libraries/LibGUI/FileSystemModel.cpp

@@ -400,6 +400,8 @@ void FileSystemModel::invalidate()
         m_root->m_parent_of_root = true;
 
     m_root->reify_if_needed();
+    for (auto const& child : m_root->m_children)
+        child->reify_if_needed();
 
     Model::invalidate();
 }