From da5017a444294e5b67fe75f5257e379fe52d7a36 Mon Sep 17 00:00:00 2001 From: Szymon Tomasz Stefanek Date: Sun, 31 Dec 2006 12:35:26 +0000 Subject: Another quick fix git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@81 17fca916-40b9-46aa-a4ea-0a15b648b75c --- src/modules/theme/managementdialog.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/modules/theme/managementdialog.cpp') 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 * 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(); } -- cgit v1.3.1-10-gc9f91