From 59ee61a90def8da7283a02c562fbf420a132ea68 Mon Sep 17 00:00:00 2001 From: Berkus Decker Date: Wed, 20 Dec 2017 00:13:05 +0200 Subject: [PATCH] Handle all enum values --- .../SourceFiles/settings/settings_chat_settings_widget.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/settings/settings_chat_settings_widget.cpp b/Telegram/SourceFiles/settings/settings_chat_settings_widget.cpp index 264e07a51..f69e4d2b2 100644 --- a/Telegram/SourceFiles/settings/settings_chat_settings_widget.cpp +++ b/Telegram/SourceFiles/settings/settings_chat_settings_widget.cpp @@ -91,9 +91,8 @@ void DownloadPathState::paintEvent(QPaintEvent *e) { case State::Clearing: return lang(lng_download_path_clearing); case State::Cleared: return lang(lng_download_path_cleared); case State::ClearFailed: return lang(lng_download_path_clear_failed); - case State::Empty: case State::Exists: assert(false); // temp + default: return QString(); } - return QString(); })(); if (!text.isEmpty()) { p.setFont(st::linkFont);