Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
a001238b
Commit
a001238b
authored
Jul 26, 2015
by
Fabio Bas
Browse files
Force cache clear on sets database save.
parent
90655ff6
Changes
2
Show whitespace changes
Inline
Side-by-side
cockatrice/src/carddatabase.cpp
View file @
a001238b
...
...
@@ -889,6 +889,8 @@ void CardDatabase::clearPixmapCache()
}
if
(
noCard
)
noCard
->
clearPixmapCache
();
QPixmapCache
::
clear
();
}
void
CardDatabase
::
loadSetsFromXml
(
QXmlStreamReader
&
xml
)
...
...
cockatrice/src/window_sets.cpp
View file @
a001238b
...
...
@@ -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
();
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment