From a001238b749859a4a4dfede712aed970bc09258e Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Sun, 26 Jul 2015 11:46:09 +0200 Subject: [PATCH] Force cache clear on sets database save. --- cockatrice/src/carddatabase.cpp | 2 ++ cockatrice/src/window_sets.cpp | 1 + 2 files changed, 3 insertions(+) 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(); }