fixed crashes on quit, fixed scrolled sticker icons

This commit is contained in:
John Preston
2015-12-28 09:19:29 +03:00
parent 3aa2e592e0
commit 4b99eb9c8d
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -2290,7 +2290,7 @@ void History::setUnreadCount(int32 newUnreadCount, bool psUpdate) {
App::histories().unreadFull += newUnreadCount - unreadCount;
if (mute) App::histories().unreadMuted += newUnreadCount - unreadCount;
unreadCount = newUnreadCount;
if (psUpdate && (!mute || cIncludeMuted())) App::wnd()->updateCounter();
if (psUpdate && (!mute || cIncludeMuted()) && App::wnd()) App::wnd()->updateCounter();
if (unreadBar) {
int32 count = unreadCount;
if (peer->migrateTo()) {