Commit 92af5125 authored by Don Gagne's avatar Don Gagne

Strip off file size from file name

parent 8474d416
......@@ -56,7 +56,8 @@ void QGCUASFileView::_downloadFiles(void)
QTreeWidgetItem* item = _ui.treeWidget->currentItem();
if (item && item->type() == _typeFile) {
do {
path.prepend("/" + item->text(0));
QString name = item->text(0).split("\t")[0]; // Strip off file sizes
path.prepend("/" + name);
item = item->parent();
} while (item);
qDebug() << "Download: " << path;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment