aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules
diff options
context:
space:
mode:
authorGravatar Szymon Tomasz Stefanek2006-12-31 12:36:52 +0000
committerGravatar Szymon Tomasz Stefanek2006-12-31 12:36:52 +0000
commit7b18e220633e51f299030fa45a997dc2a9141632 (patch)
treef0ecf6c3d5bbef06544d0596d7e1b32a608214cc /src/modules
parentAnother quick fix (diff)
downloadKVIrc-7b18e220633e51f299030fa45a997dc2a9141632.tar.gz
KVIrc-7b18e220633e51f299030fa45a997dc2a9141632.tar.bz2
KVIrc-7b18e220633e51f299030fa45a997dc2a9141632.zip
Yet another one
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@82 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/theme/managementdialog.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/modules/theme/managementdialog.cpp b/src/modules/theme/managementdialog.cpp
index c7153f406..342c5829a 100644
--- a/src/modules/theme/managementdialog.cpp
+++ b/src/modules/theme/managementdialog.cpp
@@ -1048,10 +1048,7 @@ void KviThemeManagementDialog::installFromXml()
pByteArray = r.binaryInfoFields()->find("Image");
if(pByteArray)
{
- QBuffer buffer(*pByteArray);
- buffer.open(IO_ReadOnly);
- pix.load(&buffer,0,0);
- buffer.close();
+ pix.loadFromData(*pByteArray,0,0);
}
if(pix.isNull())