Skip to content

Commit

Permalink
coverartcopyworker: wait() added in destructor
Browse files Browse the repository at this point in the history
  • Loading branch information
fatihemreyildiz committed Oct 1, 2022
1 parent 48977b3 commit 388fe59
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/library/export/coverartcopyworker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
#include "util/imagefiledata.h"
#include "util/safelywritablefile.h"

CoverArtCopyWorker::~CoverArtCopyWorker() {
wait();
}

void CoverArtCopyWorker::run() {
// Create a security token for the file.
auto selectedCoverFileAccess = mixxx::FileAccess(mixxx::FileInfo(m_selectedCoverArtFilePath));
Expand Down
2 changes: 1 addition & 1 deletion src/library/export/coverartcopyworker.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class CoverArtCopyWorker : public QThread {
qRegisterMetaType<CoverInfoRelative>("CoverInfoRelative");
}

~CoverArtCopyWorker() override = default;
~CoverArtCopyWorker() override;

signals:
void askOverwrite(const QString& filename,
Expand Down

0 comments on commit 388fe59

Please sign in to comment.