Showing the changes to interface/src/scripting/AssetMappingsScriptingInterface.cpp (1 of 1 file). Show all
Unified · Split
| @@ -80,7 +80,7 @@ void AssetMappingsScriptingInterface::uploadFile(QString path, QString mapping, · 79 unmodified lines | ||
| 80 | 80 | auto result = offscreenUi->inputDialog(OffscreenUi::ICON_INFORMATION, "Specify Asset Path", |
| 81 | 81 | dropEvent ? dropHelpText : helpText, mapping); |
| 82 | 82 | |
| 83 | − if (!result.isValid()) { | |
| 83 | + if (!result.isValid() || result.toString() == "") { | |
| 84 | 84 | completedCallback.call({ -1 }); |
| 85 | 85 | return; |
| 86 | 86 | } |