Update AssetMappingsScriptingInterface to not open file for activity event

This commit is contained in:
Ryan Huffman 2017-10-10 09:44:13 -07:00
parent ff019d6195
commit 9c120f1194

View file

@ -105,12 +105,8 @@ void AssetMappingsScriptingInterface::uploadFile(QString path, QString mapping,
startedCallback.call();
QFile file { path };
int64_t size { 0 };
if (file.open(QIODevice::ReadOnly)) {
size = file.size();
file.close();
}
QFileInfo fileInfo { path };
int64_t size { fileInfo.size() };
QString extension = "";
auto idx = path.lastIndexOf(".");