Skip to content

Commit

Permalink
remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
octaeder committed Mar 1, 2024
1 parent 2d62fee commit e53a7fb
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/macrobrowserui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ void MacroBrowserUI::onRequestCompleted()
currentItem->takeChildren();
currentItem->setData(0,PopulatedRole,true);
}
QList<QTreeWidgetItem*> listOfItems;
foreach(auto element,elements){
QJsonObject dd=element.toObject();
if(dd["type"].toString()=="file"){
Expand All @@ -190,7 +189,6 @@ void MacroBrowserUI::onRequestCompleted()
twi->setData(0,UrlRole,dd["download_url"].toString());
twi->setCheckState(0,Qt::Unchecked);
currentItem->addChild(twi);
listOfItems<<twi;
}
}else{ // folder
QString name=dd["name"].toString();
Expand All @@ -206,7 +204,6 @@ void MacroBrowserUI::onRequestCompleted()
item->setData(0,PathRole, path+name);
if(!currentItem) treeWidget->addTopLevelItem(item);
else item->addChild(item);
listOfItems<<item;
}
}
}
Expand Down

0 comments on commit e53a7fb

Please sign in to comment.