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)
noCard->clearPixmapCache();
QPixmapCache::clear();
}
void CardDatabase::loadSetsFromXml(QXmlStreamReader &xml)

View file

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