Force cache clear on sets database save.

This commit is contained in:
Fabio Bas 2015-07-26 11:46:09 +02:00
parent 90655ff631
commit a001238b74
2 changed files with 3 additions and 0 deletions

View file

@ -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)

View file

@ -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();
} }