Skip to content

Fix Crash when deleting a folder outside of Overload and trying to expand it afterwards#725#729

Merged
adriengivry merged 7 commits intoOverload-Technologies:mainfrom
Synyproxy:bug-folder-expand-crash
Apr 18, 2026
Merged

Fix Crash when deleting a folder outside of Overload and trying to expand it afterwards#725#729
adriengivry merged 7 commits intoOverload-Technologies:mainfrom
Synyproxy:bug-folder-expand-crash

Conversation

@Synyproxy
Copy link
Copy Markdown
Contributor

Description

Fixes this bug:
Delete a folder outside of Overload, then try expanding the folder in Overload causes crash.
Now expanding the folder shows error message.
Also fixed deleting that folder from the asset browser.

Related Issue(s)

#725
Fixes #725

Review Guidance

When expanding a delete folder, user get's feedback message.
Also fixed deleting that folder from the asset browser

Checklist

  • [x ] My code follows the project's code style guidelines
  • [ x] I have commented my code, particularly in hard-to-understand areas
  • [ x] I have updated the documentation accordingly
  • [ x] My changes don't generate new warnings or errors

Copy link
Copy Markdown
Member

@adriengivry adriengivry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Copy Markdown
Member

@adriengivry adriengivry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually contextual actions on the missing folder cause crash (show in explorer, import here, rename...)

Image

Copy link
Copy Markdown
Contributor Author

@Synyproxy Synyproxy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should handle the other asset browser context menu actions on deleted folder

Comment on lines +295 to +299
if (!ValidateFolderPath(filePath))
{
ShowPathDeletedError("Create shader");
return;
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ValidateFolderPath could automatically show the error message when it fails.
So we can have something like:

if (!ValidateFolderPath(filePath, "Create shader") return;

Comment on lines +139 to +153
bool ShowPathDeletedError(const std::string& p_actionName)
{
if (!std::filesystem::exists(std::filesystem::path(p_actionName)))
{
using namespace OvWindowing::Dialogs;
MessageBox errorMessage(
"Action failed",
"Cannot perform this action because the target folder was deleted externally",
MessageBox::EMessageType::ERROR,
MessageBox::EButtonLayout::OK
);
return true;
}
return false;
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably doesn't need a return value, and could simply log to the console with OVLOG_ERROR

@Gopmyc
Copy link
Copy Markdown
Contributor

Gopmyc commented Apr 18, 2026

this should handle the other asset browser context menu actions on deleted folder

Hi !
Do you need help with this PR ?

@adriengivry adriengivry merged commit 4c42a41 into Overload-Technologies:main Apr 18, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Crash when deleting a folder outside of Overload and trying to expand it afterwards

3 participants