mirror of https://github.com/procxx/kepka.git
Closed alpha 2.1.7.1: Fix build for Xcode.
This commit is contained in:
parent
6dabd87df3
commit
a9b70a7d63
|
@ -280,7 +280,7 @@ EditCaptionBox::EditCaptionBox(
|
||||||
Assert(_animated || _photo || _doc);
|
Assert(_animated || _photo || _doc);
|
||||||
|
|
||||||
_thumbnailImageLoaded = _photoMedia
|
_thumbnailImageLoaded = _photoMedia
|
||||||
? _photoMedia->image(Data::PhotoSize::Large)
|
? (_photoMedia->image(Data::PhotoSize::Large) != nullptr)
|
||||||
: _thumbnailImage
|
: _thumbnailImage
|
||||||
? _thumbnailImage->loaded()
|
? _thumbnailImage->loaded()
|
||||||
: _documentMedia
|
: _documentMedia
|
||||||
|
|
|
@ -283,7 +283,7 @@ void PhotoData::load(
|
||||||
if (size == PhotoSize::Large) {
|
if (size == PhotoSize::Large) {
|
||||||
_owner->photoLoadFail(this, started);
|
_owner->photoLoadFail(this, started);
|
||||||
}
|
}
|
||||||
}, [=, &image] {
|
}, [=] {
|
||||||
finishLoad(size);
|
finishLoad(size);
|
||||||
if (size == PhotoSize::Large) {
|
if (size == PhotoSize::Large) {
|
||||||
_owner->photoLoadDone(this);
|
_owner->photoLoadDone(this);
|
||||||
|
|
Loading…
Reference in New Issue