[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdenetwork/kopete/protocols/msn
From:       Matt Rogers <matt.rogers () kdemail ! net>
Date:       2004-04-30 19:10:50
Message-ID: 20040430191050.088249A5E () office ! kde ! org
[Download RAW message or body]

CVS commit by mattr: 

Don't try to read the image if the file size is zero.

Should fix bug 77100

CCMAIL: 77100-done@bugs.kde.org


  M +3 -1      msnmessagemanager.cpp   1.95


--- kdenetwork/kopete/protocols/msn/msnmessagemanager.cpp  #1.94:1.95
@@ -21,4 +21,5 @@
 #include <qimage.h>
 #include <qtooltip.h>
+#include <qfile.h>
 
 #include <kconfig.h>
@@ -502,5 +503,6 @@ void MSNMessageManager::slotDisplayPictu
         if ( c && m_image )
         {
-                if ( c->displayPicture() )
+                KTempFile* tempFile = c->displayPicture();
+                if ( tempFile && tempFile->file() && tempFile->file()->size() != 0 )
                 {
                         // FIXME: don't duplicate this code with the c'tor - Martijn


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic