Force cache clear on sets database save.
This commit is contained in:
parent
90655ff631
commit
a001238b74
2 changed files with 3 additions and 0 deletions
|
@ -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()
|
||||||
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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue