mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 05:08:13 +00:00
FileManager+LibGUI: Fix two folder-related crashes (#569)
Fix a crash when opening a folder, and another one when trying to open a newly created folder. It was not safe to modify a GModelSelection while it's being iterated over. Fixes #536.
This commit is contained in:
parent
caf1b37e75
commit
a4d52b122d
4 changed files with 46 additions and 5 deletions
|
@ -37,6 +37,7 @@ private:
|
|||
|
||||
struct Node;
|
||||
Node* m_root { nullptr };
|
||||
void cleanup();
|
||||
|
||||
GIcon m_open_folder_icon;
|
||||
GIcon m_closed_folder_icon;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue