Allow to cancel file-open dialog

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2021-10-22 16:27:03 +01:00
parent c6b0a0241e
commit c55455eb21
No known key found for this signature in database
GPG key ID: CDBAA37ABC74FBA0

View file

@ -478,6 +478,9 @@ protected:
void uiFileBrowserSelected(const char* const filename) override
{
if (filename == nullptr)
return;
const ScopedContext sc(this);
fContext->patch->loadAction(filename);
}