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);