We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a1b552c + db6a889 commit cb7997eCopy full SHA for cb7997e
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