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:
parent
bf06d4d545
commit
6bc7fa9ef4
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user