diff --git a/src/macrobrowserui.cpp b/src/macrobrowserui.cpp index 1ff1034bcc..2de1db8f00 100644 --- a/src/macrobrowserui.cpp +++ b/src/macrobrowserui.cpp @@ -179,7 +179,6 @@ void MacroBrowserUI::onRequestCompleted() currentItem->takeChildren(); currentItem->setData(0,PopulatedRole,true); } - QList listOfItems; foreach(auto element,elements){ QJsonObject dd=element.toObject(); if(dd["type"].toString()=="file"){ @@ -190,7 +189,6 @@ void MacroBrowserUI::onRequestCompleted() twi->setData(0,UrlRole,dd["download_url"].toString()); twi->setCheckState(0,Qt::Unchecked); currentItem->addChild(twi); - listOfItems<setData(0,PathRole, path+name); if(!currentItem) treeWidget->addTopLevelItem(item); else item->addChild(item); - listOfItems<