Showing the changes to interface/src/scripting/AssetMappingsScriptingInterface.cpp (1 of 2 files). Show all
Unified · Split
| @@ -83,6 +83,7 @@ void AssetMappingsScriptingInterface::getMapping(QString path, QJSValue callback · 82 unmodified lines | ||
| 83 | 83 | void AssetMappingsScriptingInterface::uploadFile(QString path, QString mapping, QJSValue callback) { |
| 84 | 84 | auto offscreenUi = DependencyManager::get<OffscreenUi>(); |
| 85 | 85 | auto result = offscreenUi->inputDialog(OffscreenUi::ICON_NONE, "Enter asset path:", "", mapping); |
| 86 | + | |
| 86 | 87 | if (!result.isValid()) { |
| 87 | 88 | return; |
| 88 | 89 | } |