Commit a001238b authored by Fabio Bas's avatar Fabio Bas
Browse files

Force cache clear on sets database save.

parent 90655ff6
...@@ -889,6 +889,8 @@ void CardDatabase::clearPixmapCache() ...@@ -889,6 +889,8 @@ void CardDatabase::clearPixmapCache()
} }
if (noCard) if (noCard)
noCard->clearPixmapCache(); noCard->clearPixmapCache();
QPixmapCache::clear();
} }
void CardDatabase::loadSetsFromXml(QXmlStreamReader &xml) void CardDatabase::loadSetsFromXml(QXmlStreamReader &xml)
......
...@@ -123,6 +123,7 @@ WndSets::~WndSets() ...@@ -123,6 +123,7 @@ WndSets::~WndSets()
void WndSets::actSave() void WndSets::actSave()
{ {
model->save(db); model->save(db);
db->clearPixmapCache();
QMessageBox::information(this, tr("Success"), tr("The sets database has been saved successfully.")); QMessageBox::information(this, tr("Success"), tr("The sets database has been saved successfully."));
close(); close();
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment