summaryrefslogtreecommitdiff
path: root/gameView/main.cpp
diff options
context:
space:
mode:
authorAotrix <[email protected]>2026-07-31 06:20:19 +0200
committerAotrix <[email protected]>2026-07-31 06:20:19 +0200
commit8df5367756a9a818e41e6f64128491529c687188 (patch)
tree7e6ff59eb35e8a1cd52a7be3f758910f5face2a7 /gameView/main.cpp
parent1d046f6bf16f9a268a8fdb6f158f0a9a89ea93a4 (diff)
Clear list of cards
Diffstat (limited to 'gameView/main.cpp')
-rw-r--r--gameView/main.cpp1
1 files changed, 1 insertions, 0 deletions
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<std::string>(),