diff --git a/cockatrice/src/carddatabase.cpp b/cockatrice/src/carddatabase.cpp index fe0fe122..3804fe8d 100644 --- a/cockatrice/src/carddatabase.cpp +++ b/cockatrice/src/carddatabase.cpp @@ -889,6 +889,8 @@ void CardDatabase::clearPixmapCache() } if (noCard) noCard->clearPixmapCache(); + + QPixmapCache::clear(); } void CardDatabase::loadSetsFromXml(QXmlStreamReader &xml) diff --git a/cockatrice/src/window_sets.cpp b/cockatrice/src/window_sets.cpp index 4df5d9b2..890688cf 100644 --- a/cockatrice/src/window_sets.cpp +++ b/cockatrice/src/window_sets.cpp @@ -123,6 +123,7 @@ WndSets::~WndSets() void WndSets::actSave() { model->save(db); + db->clearPixmapCache(); QMessageBox::information(this, tr("Success"), tr("The sets database has been saved successfully.")); close(); }