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
80 auto result = offscreenUi->inputDialog(OffscreenUi::ICON_INFORMATION, "Specify Asset Path",80 auto result = offscreenUi->inputDialog(OffscreenUi::ICON_INFORMATION, "Specify Asset Path",
81 dropEvent ? dropHelpText : helpText, mapping);81 dropEvent ? dropHelpText : helpText, mapping);
82 82
83 if (!result.isValid()) {83 if (!result.isValid() || result.toString() == "") {
84 completedCallback.call({ -1 });84 completedCallback.call({ -1 });
85 return;85 return;
86 }86 }