1
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-03-08 07:18:04 +00:00

Fix crash in saving of a document.

This commit is contained in:
John Preston 2020-06-04 12:22:37 +04:00
parent bf06d4d545
commit 6bc7fa9ef4

View File

@ -913,7 +913,7 @@ void DocumentData::save(
const QString &toFile,
LoadFromCloudSetting fromCloud,
bool autoLoading) {
if (const auto media = activeMediaView(); media->loaded(true)) {
if (const auto media = activeMediaView(); media && media->loaded(true)) {
auto &l = location(true);
if (!toFile.isEmpty()) {
if (!media->bytes().isEmpty()) {