some crashes fixed

This commit is contained in:
John Preston
2016-02-14 18:58:39 +03:00
parent a439fc32da
commit e492b1e93d
9 changed files with 47 additions and 33 deletions
+3 -1
View File
@@ -189,7 +189,9 @@ void UserData::setPhoto(const MTPUserProfilePhoto &p) { // see Local::readPeer a
photoId = newPhotoId;
photo = newPhoto;
photoLoc = newPhotoLoc;
emit App::main()->peerPhotoChanged(this);
if (App::main()) {
emit App::main()->peerPhotoChanged(this);
}
}
}