mirror of https://github.com/procxx/kepka.git
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