mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Remove twidget header.
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user