History

Make sure Upload is not clicked several times

Atlante45 committed 10 years ago

Commit 63571a71 parent 548d8262 files · +8 −0Browse files

Showing the changes to interface/src/scripting/AssetMappingsScriptingInterface.cpp (1 of 2 files). Show all

Unified · Split

interface/src/scripting/AssetMappingsScriptingInterface.cpp+1−0
@@ -83,6 +83,7 @@ void AssetMappingsScriptingInterface::getMapping(QString path, QJSValue callback · 82 unmodified lines
8383 void AssetMappingsScriptingInterface::uploadFile(QString path, QString mapping, QJSValue callback) {
8484 auto offscreenUi = DependencyManager::get<OffscreenUi>();
8585 auto result = offscreenUi->inputDialog(OffscreenUi::ICON_NONE, "Enter asset path:", "", mapping);
86+
8687 if (!result.isValid()) {
8788 return;
8889 }