We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1b552c commit db6a889Copy full SHA for db6a889
1 file changed
Sources/Overload/OvEditor/src/OvEditor/Panels/AssetBrowser.cpp
@@ -509,9 +509,12 @@ class FolderContextualMenu : public BrowserItemContextualMenu
509
510
if (message.GetUserAction() == MessageBox::EUserAction::YES)
511
{
512
- EDITOR_EXEC(PropagateFolderDestruction(filePath));
513
- std::filesystem::remove_all(filePath);
514
- DestroyedEvent.Invoke(filePath);
+ if (std::filesystem::exists(filePath) == true)
+ {
+ EDITOR_EXEC(PropagateFolderDestruction(filePath));
515
+ std::filesystem::remove_all(filePath);
516
+ DestroyedEvent.Invoke(filePath);
517
+ }
518
}
519
520
0 commit comments