CVS commit by ogoffart: Set the photo property of the myself contact, so there may be an image for myself M +9 -1 msnaccount.cpp 1.119 --- kdenetwork/kopete/protocols/msn/msnaccount.cpp #1.118:1.119 @@ -1216,10 +1216,17 @@ void MSNAccount::resetPictureObject(bool if(!configGroup()->readBoolEntry("exportCustomPicture")) + { m_pictureObj=""; + myself()->removeProperty( Kopete::Global::Properties::self()->photo() ); + } else { - QFile pictFile(locateLocal( "appdata", "msnpicture-"+ accountId().lower().replace(QRegExp("[./~]"),"-") +".png" ) ); + QString fn=locateLocal( "appdata", "msnpicture-"+ accountId().lower().replace(QRegExp("[./~]"),"-") +".png" ); + QFile pictFile( fn ); if(!pictFile.open(IO_ReadOnly)) + { m_pictureObj=""; + myself()->removeProperty( Kopete::Global::Properties::self()->photo() ); + } else { @@ -1230,4 +1237,5 @@ void MSNAccount::resetPictureObject(bool QString all= "Creator"+accountId()+"Size"+size+"Type3Locationkopete.tmpFriendlyAAA=SHA1D"+ sha1d; m_pictureObj=""; + myself()->setProperty( Kopete::Global::Properties::self()->photo() , fn ); } }