History

Fix bugs in Menu.cpp

Ryan Huffman committed 11 years ago

Commit aed1ba31 parent aa7d8671 file · +2 −2Browse files

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

Unified · Split

interface/src/Menu.cpp+2−2
@@ -104,11 +104,11 @@ Menu::Menu() { · 103 unmodified lines
104104 qDebug() << "Selected: " << filename;
105105 QFile file { filename.path() };
106106 if (file.open(QIODevice::ReadOnly)) {
107− auto fileInfo { filename.path() };
107+ QFileInfo fileInfo { filename.path() };
108108 auto extension = fileInfo.suffix();
109109 auto data = file.readAll();
110110 auto assetClient = DependencyManager::get<AssetClient>();
111− assetClient->uploadAsset(data, extension, [this](bool result, QString hash) mutable {
111+ assetClient->uploadAsset(data, extension, [this, extension](bool result, QString hash) mutable {
112112 if (result) {
113113 QMessageBox::information(this, "Upload Successful", "URL: apt:/" + hash + "." + extension);
114114 } else {