Browse Source

[Fix #2] Change sort order in basket

allow_new_sellers
Martin Brodbeck 4 years ago
parent
commit
b76d1e129a
  1. 2
      src/core/marketplace.cpp

2
src/core/marketplace.cpp

@ -113,7 +113,7 @@ Seller* Marketplace::findSellerWithUuid(const std::string& uuid)
void Marketplace::addArticleToBasket(std::unique_ptr<Article> article)
{
basket_.push_back(std::move(article));
basket_.insert(basket_.begin(), std::move(article)); // article to the beginning of the basket vector
}
size_t Marketplace::basketSize() { return basket_.size(); }

Loading…
Cancel
Save