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

Remove twidget header.

This commit is contained in:
John Preston
2019-09-13 15:22:54 +03:00
parent e2f54eb3e9
commit c5845f17ae
188 changed files with 1070 additions and 907 deletions

View File

@@ -449,7 +449,7 @@ bool FileLoader::tryLoadLocal() {
return true;
}
const auto weak = make_weak(this);
const auto weak = QPointer<FileLoader>(this);
if (_toCache == LoadToCacheAsWell) {
loadLocal(cacheKey());
emit progress(this);
@@ -485,7 +485,7 @@ void FileLoader::cancel(bool fail) {
const auto queue = _queue;
const auto sessionGuard = &session();
const auto weak = make_weak(this);
const auto weak = QPointer<FileLoader>(this);
if (fail) {
emit failed(this, started);
} else {
@@ -989,7 +989,7 @@ void mtpFileLoader::getCdnFileHashesDone(
}
}
if (someMoreChecked) {
const auto weak = make_weak(this);
const auto weak = QPointer<mtpFileLoader>(this);
notifyAboutProgress();
if (weak) {
requestMoreCdnFileHashes();