From 8df5367756a9a818e41e6f64128491529c687188 Mon Sep 17 00:00:00 2001 From: Aotrix <9aotrix@protonmail.com> Date: Fri, 31 Jul 2026 06:20:19 +0200 Subject: Clear list of cards --- gameView/main.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'gameView/main.cpp') diff --git a/gameView/main.cpp b/gameView/main.cpp index f5dcf48..7a9b8b6 100644 --- a/gameView/main.cpp +++ b/gameView/main.cpp @@ -27,6 +27,7 @@ class MainWindowMediator { MainWindowMediator &fillListOfCards(const std::string &iCardsJsonPath) { std::ifstream aCardsJsonFile{iCardsJsonPath}; uint64_t aCardIndex{0}; + _listOfCardsWidget->clear(); for (auto &aCard : nlohmann::json::parse(aCardsJsonFile)) { _listOfCardsWidget->insertItem(aCardIndex++, std::format("{} ({})", aCard["name"].get(), -- cgit v1.2.3