diff options
Diffstat (limited to 'Userland/Libraries/LibGUI/FileSystemModel.cpp')
-rw-r--r-- | Userland/Libraries/LibGUI/FileSystemModel.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGUI/FileSystemModel.cpp b/Userland/Libraries/LibGUI/FileSystemModel.cpp index eb03b50850..cb4b437030 100644 --- a/Userland/Libraries/LibGUI/FileSystemModel.cpp +++ b/Userland/Libraries/LibGUI/FileSystemModel.cpp @@ -746,7 +746,11 @@ void FileSystemModel::set_data(ModelIndex const& index, Variant const& data) if (rc < 0) { if (on_rename_error) on_rename_error(errno, strerror(errno)); + return; } + + if (on_rename_successful) + on_rename_successful(node.full_path(), new_full_path); } Vector<ModelIndex> FileSystemModel::matches(StringView const& searching, unsigned flags, ModelIndex const& index) |