2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

started media redesign (does not compile!)

This commit is contained in:
John Preston
2015-12-08 22:07:50 +03:00
parent 0b96dd5362
commit 6bad3b4d7e
12 changed files with 575 additions and 436 deletions

View File

@@ -148,7 +148,7 @@ void StickerSetInner::paintEvent(QPaintEvent *e) {
doc->thumb->load();
} else {
bool already = !doc->already().isEmpty(), hasdata = !doc->data.isEmpty();
if (!doc->loader && doc->status != FileFailed && !already && !hasdata) {
if (!already && !hasdata && !doc->loader && doc->status == FileReady) {
doc->save(QString());
}
if (doc->sticker()->img->isNull() && (already || hasdata)) {