diff options
| author | 2015-09-15 01:41:11 +0200 | |
|---|---|---|
| committer | 2015-09-15 01:41:11 +0200 | |
| commit | 4e11b44ea4f5b0a90b3dad4c51d2ad6addec0dc3 (patch) | |
| tree | 6cd3a9b63b9ea209a5dd6579ae10fe394e8e6f29 /src/modules/addon/AddonFunctions.cpp | |
| parent | More work on addon management (diff) | |
| download | KVIrc-4e11b44ea4f5b0a90b3dad4c51d2ad6addec0dc3.tar.gz KVIrc-4e11b44ea4f5b0a90b3dad4c51d2ad6addec0dc3.tar.bz2 KVIrc-4e11b44ea4f5b0a90b3dad4c51d2ad6addec0dc3.zip | |
More work on addon managmenet
Diffstat (limited to 'src/modules/addon/AddonFunctions.cpp')
| -rw-r--r-- | src/modules/addon/AddonFunctions.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/modules/addon/AddonFunctions.cpp b/src/modules/addon/AddonFunctions.cpp index 03f3613a9..008506684 100644 --- a/src/modules/addon/AddonFunctions.cpp +++ b/src/modules/addon/AddonFunctions.cpp @@ -313,9 +313,15 @@ namespace AddonFunctions pw.addInfoField("MinimumKVIrcVersion",info.szMinVersion); pw.addInfoField("Application","KVIrc " KVI_VERSION "." KVI_SOURCES_DATE); - QPixmap pix(info.szIcon); - if(!pix.isNull()) + if(!info.szImage.isEmpty()) { + QPixmap pix(info.szImage); + if(pix.isNull()) + { + szError = __tr2qs_ctx("Failed to load the image at %1","addon").arg(info.szImage); + return false; + } + QByteArray * pba = new QByteArray(); QBuffer bufferz(pba,0); |
