2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-05 09:05:14 +00:00

Added some checks in Qt screen() calls.

Added check for self() user data in self photo update in Settings.
This commit is contained in:
John Preston
2016-04-04 12:55:47 +04:00
parent 174302a907
commit f760846c82
2 changed files with 27 additions and 1 deletions

View File

@@ -1196,6 +1196,10 @@ void SettingsInner::onUpdatePhotoCancel() {
}
void SettingsInner::onUpdatePhoto() {
if (!self()) {
return;
}
saveError();
QStringList imgExtensions(cImgExtensions());