From b44cf4a094f172fd63432d23e69775974275da11 Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 16 Jul 2018 22:45:04 +0300 Subject: [PATCH] Remove error box on download start failure. --- Telegram/SourceFiles/mainwidget.cpp | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/Telegram/SourceFiles/mainwidget.cpp b/Telegram/SourceFiles/mainwidget.cpp index d1fbc143d4..4ce0bd8b7b 100644 --- a/Telegram/SourceFiles/mainwidget.cpp +++ b/Telegram/SourceFiles/mainwidget.cpp @@ -1636,12 +1636,15 @@ void MainWidget::documentLoadFailed(FileLoader *loader, bool started) { if (document) document->save(failedFileName); }))); } else { - Ui::show(Box(lang(lng_download_path_failed), lang(lng_download_path_settings), crl::guard(this, [=] { - Global::SetDownloadPath(QString()); - Global::SetDownloadPathBookmark(QByteArray()); - Ui::show(Box()); - Global::RefDownloadPathChanged().notify(); - }))); + // Sometimes we have LOCATION_INVALID error in documents / stickers. + // Sometimes FILE_REFERENCE_EXPIRED could not be handled. + // + //Ui::show(Box(lang(lng_download_path_failed), lang(lng_download_path_settings), crl::guard(this, [=] { + // Global::SetDownloadPath(QString()); + // Global::SetDownloadPathBookmark(QByteArray()); + // Ui::show(Box()); + // Global::RefDownloadPathChanged().notify(); + //}))); } if (document) {