mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-15 11:15:59 +01:00
Fix setting task blocking library scans
TaskManager::SetTaskBlocksLibraryScans() takes the ID of the task.
This commit is contained in:
parent
598e660aeb
commit
0c1b6a2a44
@ -48,7 +48,7 @@ void DeleteFiles::Start(const SongList& songs) {
|
||||
songs_ = songs;
|
||||
|
||||
task_id_ = task_manager_->StartTask(tr("Deleting files"));
|
||||
task_manager_->SetTaskBlocksLibraryScans(true);
|
||||
task_manager_->SetTaskBlocksLibraryScans(task_id_);
|
||||
|
||||
thread_ = new QThread;
|
||||
connect(thread_, SIGNAL(started()), SLOT(ProcessSomeFiles()));
|
||||
|
@ -70,7 +70,7 @@ void Organise::Start() {
|
||||
if (thread_) return;
|
||||
|
||||
task_id_ = task_manager_->StartTask(tr("Organising files"));
|
||||
task_manager_->SetTaskBlocksLibraryScans(true);
|
||||
task_manager_->SetTaskBlocksLibraryScans(task_id_);
|
||||
|
||||
thread_ = new QThread;
|
||||
connect(thread_, SIGNAL(started()), SLOT(ProcessSomeFiles()));
|
||||
|
Loading…
Reference in New Issue
Block a user