History

Fix invalid message if cancel adding asset to AssetServer

vladest committed 8 years ago

Commit faf83281 parent 47437c91 file · +1 −1Browse files

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

Unified · Split

interface/src/scripting/AssetMappingsScriptingInterface.cpp+1−1
@@ -80,7 +80,7 @@ void AssetMappingsScriptingInterface::uploadFile(QString path, QString mapping, · 79 unmodified lines
8080 auto result = offscreenUi->inputDialog(OffscreenUi::ICON_INFORMATION, "Specify Asset Path",
8181 dropEvent ? dropHelpText : helpText, mapping);
8282
83− if (!result.isValid()) {
83+ if (!result.isValid() || result.toString() == "") {
8484 completedCallback.call({ -1 });
8585 return;
8686 }