mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-02 15:45:12 +00:00
Fix crash in saving of a document.
This commit is contained in:
@@ -913,7 +913,7 @@ void DocumentData::save(
|
|||||||
const QString &toFile,
|
const QString &toFile,
|
||||||
LoadFromCloudSetting fromCloud,
|
LoadFromCloudSetting fromCloud,
|
||||||
bool autoLoading) {
|
bool autoLoading) {
|
||||||
if (const auto media = activeMediaView(); media->loaded(true)) {
|
if (const auto media = activeMediaView(); media && media->loaded(true)) {
|
||||||
auto &l = location(true);
|
auto &l = location(true);
|
||||||
if (!toFile.isEmpty()) {
|
if (!toFile.isEmpty()) {
|
||||||
if (!media->bytes().isEmpty()) {
|
if (!media->bytes().isEmpty()) {
|
||||||
|
Reference in New Issue
Block a user