aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/theme
diff options
context:
space:
mode:
authorGravatar Szymon Tomasz Stefanek2006-12-31 12:35:26 +0000
committerGravatar Szymon Tomasz Stefanek2006-12-31 12:35:26 +0000
commitda5017a444294e5b67fe75f5257e379fe52d7a36 (patch)
tree49f2cee552627778d60d75913ec953d47b2f6f28 /src/modules/theme
parentA quick fix for Big Endian machines (diff)
downloadKVIrc-da5017a444294e5b67fe75f5257e379fe52d7a36.tar.gz
KVIrc-da5017a444294e5b67fe75f5257e379fe52d7a36.tar.bz2
KVIrc-da5017a444294e5b67fe75f5257e379fe52d7a36.zip
Another quick fix
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@81 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/theme')
-rw-r--r--src/modules/theme/managementdialog.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/modules/theme/managementdialog.cpp b/src/modules/theme/managementdialog.cpp
index 28ce3dca9..c7153f406 100644
--- a/src/modules/theme/managementdialog.cpp
+++ b/src/modules/theme/managementdialog.cpp
@@ -1002,6 +1002,8 @@ void KviThemeManagementDialog::installFromXml()
QDict<QString> * pInfoFields;
QString * pValue;
bool bInstall;
+ QPixmap pix;
+ QByteArray * pByteArray;
const char * check_fields[] = { "Name", "Version", "Author", "Description", "Date", "KVIrcVersion" };
@@ -1043,13 +1045,12 @@ void KviThemeManagementDialog::installFromXml()
// ok.. it should be really valid at this point
// load its picture
- QByteArray * pByteArray = r.binaryInfoFields()->find("Image");
- QPixmap pix;
+ pByteArray = r.binaryInfoFields()->find("Image");
if(pByteArray)
{
QBuffer buffer(*pByteArray);
buffer.open(IO_ReadOnly);
- pix.load(&buffer);
+ pix.load(&buffer,0,0);
buffer.close();
}