From 0c40bb51a63352b99abc8170d51fa442de393005 Mon Sep 17 00:00:00 2001 From: Berkus Decker Date: Mon, 27 Nov 2017 01:18:55 +0200 Subject: [PATCH] Don't crash in yet another of our warning-suppressing asserts --- Telegram/SourceFiles/profile/profile_block_shared_media.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/profile/profile_block_shared_media.cpp b/Telegram/SourceFiles/profile/profile_block_shared_media.cpp index 111ca84c2..3da7314c5 100644 --- a/Telegram/SourceFiles/profile/profile_block_shared_media.cpp +++ b/Telegram/SourceFiles/profile/profile_block_shared_media.cpp @@ -43,7 +43,7 @@ QString getButtonText(MediaOverviewType type, int count) { case OverviewFiles: return lng_profile_files(lt_count, count); case OverviewVoiceFiles: return lng_profile_audios(lt_count, count); case OverviewLinks: return lng_profile_shared_links(lt_count, count); - case OverviewChatPhotos: case OverviewCount: assert(false); // temp + case OverviewChatPhotos: case OverviewCount: return QString(); // temp } return QString(); }