summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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>(),