Skip to content

Commit

Permalink
Merge pull request #10878 from fatihemreyildiz/rejecttagfetcher
Browse files Browse the repository at this point in the history
FIX: Tag Fetcher close button doesn't abort task
  • Loading branch information
daschuer committed Sep 9, 2022
2 parents bfa8b17 + 7ca292d commit bfa9c4d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/library/dlgtagfetcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,11 @@ void DlgTagFetcher::quit() {
accept();
}

void DlgTagFetcher::reject() {
m_tagFetcher.cancel();
accept();
}

void DlgTagFetcher::fetchTagProgress(const QString& text) {
QString status = tr("Status: %1");
loadingStatus->setText(status.arg(text));
Expand Down
1 change: 1 addition & 0 deletions src/library/dlgtagfetcher.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ class DlgTagFetcher : public QDialog, public Ui::DlgTagFetcher {
void slotTrackChanged(TrackId trackId);
void apply();
void quit();
void reject() override;
void slotNext();
void slotPrev();

Expand Down

0 comments on commit bfa9c4d

Please sign in to comment.