summaryrefslogtreecommitdiffstats
path: root/sigmodr/BadgeUI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sigmodr/BadgeUI.cpp')
-rw-r--r--sigmodr/BadgeUI.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/sigmodr/BadgeUI.cpp b/sigmodr/BadgeUI.cpp
index 7dc7e7f3..99032be9 100644
--- a/sigmodr/BadgeUI.cpp
+++ b/sigmodr/BadgeUI.cpp
@@ -55,7 +55,8 @@ void Sigmodr::BadgeUI::refreshGui()
for (int i = 0; i < sigmod()->spriteCount(); ++i)
{
const Sigmod::Sprite* sprite = sigmod()->sprite(i);
- const QPixmap& icon = QPixmap::fromImage(sprite->sprite());
+ QPixmap icon;
+ icon.loadFromData(sprite->sprite());
maxHeight = qMax(maxHeight, icon.height());
maxWidth = qMax(maxWidth, icon.width());
varFace->addItem(icon, sprite->name(), sprite->id());