mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
icon in search in supergroup fixed, edit button for supergroup admins added, crash fix in cached image loading
This commit is contained in:
@@ -75,11 +75,20 @@ void TaskQueue::wakeThread() {
|
||||
}
|
||||
|
||||
void TaskQueue::cancelTask(TaskId id) {
|
||||
QMutexLocker lock(&_tasksToProcessMutex);
|
||||
for (int32 i = 0, l = _tasksToProcess.size(); i < l; ++i) {
|
||||
if (_tasksToProcess.at(i)->id() == id) {
|
||||
_tasksToProcess.removeAt(i);
|
||||
break;
|
||||
{
|
||||
QMutexLocker lock(&_tasksToProcessMutex);
|
||||
for (int32 i = 0, l = _tasksToProcess.size(); i != l; ++i) {
|
||||
if (_tasksToProcess.at(i)->id() == id) {
|
||||
_tasksToProcess.removeAt(i);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
QMutexLocker lock(&_tasksToFinishMutex);
|
||||
for (int32 i = 0, l = _tasksToFinish.size(); i != l; ++i) {
|
||||
if (_tasksToFinish.at(i)->id() == id) {
|
||||
_tasksToFinish.removeAt(i);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user