diff --git a/cockatrice/src/carddatabase.h b/cockatrice/src/carddatabase.h index e60c594b..096bbc8f 100644 --- a/cockatrice/src/carddatabase.h +++ b/cockatrice/src/carddatabase.h @@ -137,6 +137,7 @@ public: void setCustomPicURL(const QString &_set, const QString &_customPicURL) { customPicURLs.insert(_set, _customPicURL); } void setMuId(const QString &_set, const int &_muId) { muIds.insert(_set, _muId); } void addToSet(CardSet *set); + void emitPixmapUpdated() { emit pixmapUpdated(); } /** * Simplify a name to have no punctuation and lowercase all letters, for diff --git a/cockatrice/src/pictureloader.cpp b/cockatrice/src/pictureloader.cpp index 5bf85041..2b81c502 100644 --- a/cockatrice/src/pictureloader.cpp +++ b/cockatrice/src/pictureloader.cpp @@ -415,7 +415,7 @@ void PictureLoader::imageLoaded(CardInfo *card, const QImage &image) QPixmapCache::insert(card->getPixmapCacheKey(), QPixmap::fromImage(image)); } - emit card->pixmapUpdated(); + card->emitPixmapUpdated(); } void PictureLoader::clearPixmapCache(CardInfo *card)