diff --git a/interface/src/Menu.cpp b/interface/src/Menu.cpp index 3349171320..3305da5ba7 100644 --- a/interface/src/Menu.cpp +++ b/interface/src/Menu.cpp @@ -104,11 +104,11 @@ Menu::Menu() { qDebug() << "Selected: " << filename; QFile file { filename.path() }; if (file.open(QIODevice::ReadOnly)) { - auto fileInfo { filename.path() }; + QFileInfo fileInfo { filename.path() }; auto extension = fileInfo.suffix(); auto data = file.readAll(); auto assetClient = DependencyManager::get(); - assetClient->uploadAsset(data, extension, [this](bool result, QString hash) mutable { + assetClient->uploadAsset(data, extension, [this, extension](bool result, QString hash) mutable { if (result) { QMessageBox::information(this, "Upload Successful", "URL: apt:/" + hash + "." + extension); } else {