aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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();
}