diff --git a/Telegram/SourceFiles/data/data_document.cpp b/Telegram/SourceFiles/data/data_document.cpp index 356c552c81..1bc4144a8f 100644 --- a/Telegram/SourceFiles/data/data_document.cpp +++ b/Telegram/SourceFiles/data/data_document.cpp @@ -383,7 +383,7 @@ void DocumentOpenClickHandler::Open( QString filename; if (!data->saveToCache() - || (location.isEmpty() || (!data->data().isEmpty()))) { + || (location.isEmpty() && (!data->data().isEmpty()))) { filename = documentSaveFilename(data); if (filename.isEmpty()) return; } diff --git a/Telegram/SourceFiles/history/media/history_media_wall_paper.cpp b/Telegram/SourceFiles/history/media/history_media_wall_paper.cpp index a7582b3dac..3e3bca4a2a 100644 --- a/Telegram/SourceFiles/history/media/history_media_wall_paper.cpp +++ b/Telegram/SourceFiles/history/media/history_media_wall_paper.cpp @@ -141,7 +141,7 @@ void HistoryWallPaper::draw(Painter &p, const QRect &r, TextSelection selection, auto over = _animation->a_thumbOver.current(); p.setBrush(anim::brush(st::msgDateImgBg, st::msgDateImgBgOver, over)); } else { - auto over = ClickHandler::showAsActive(_data->loading() ? _cancell : _savel); + auto over = ClickHandler::showAsActive(_data->loading() ? _cancell : _openl); p.setBrush(over ? st::msgDateImgBgOver : st::msgDateImgBg); } @@ -246,7 +246,7 @@ TextState HistoryWallPaper::textState(QPoint point, StateRequest request) const } else if (_data->loading()) { result.link = _cancell; } else { - result.link = _savel; + result.link = _openl; } } return result;