diff --git a/src/dialogs/edittagdialog.cpp b/src/dialogs/edittagdialog.cpp index a8bdf3b8..1f9094ad 100644 --- a/src/dialogs/edittagdialog.cpp +++ b/src/dialogs/edittagdialog.cpp @@ -116,6 +116,7 @@ EditTagDialog::EditTagDialog(Application *app, QWidget *parent) results_dialog_(new TrackSelectionDialog(this)), #endif lyrics_fetcher_(new LyricsFetcher(app->lyrics_providers(), this)), + cover_menu_(new QMenu(this)), image_no_cover_thumbnail_(ImageUtils::GenerateNoCoverImage(QSize(128, 128), devicePixelRatioF())), loading_(false), ignore_edits_(false), @@ -205,9 +206,6 @@ EditTagDialog::EditTagDialog(Application *app, QWidget *parent) #endif QObject::connect(ui_->fetch_lyrics, &QPushButton::clicked, this, &EditTagDialog::FetchLyrics); - // Set up the album cover menu - cover_menu_ = new QMenu(this); - QList actions = album_cover_choice_controller_->GetAllActions(); QObject::connect(album_cover_choice_controller_, &AlbumCoverChoiceController::Error, this, &EditTagDialog::Error); diff --git a/src/dialogs/edittagdialog.h b/src/dialogs/edittagdialog.h index ab20abad..0e497b35 100644 --- a/src/dialogs/edittagdialog.h +++ b/src/dialogs/edittagdialog.h @@ -185,6 +185,8 @@ class EditTagDialog : public QDialog { #endif LyricsFetcher *lyrics_fetcher_; + QMenu *cover_menu_; + const QImage image_no_cover_thumbnail_; bool loading_; @@ -199,8 +201,6 @@ class EditTagDialog : public QDialog { quint64 tags_cover_art_id_; bool cover_art_is_set_; - QMenu *cover_menu_; - QPushButton *previous_button_; QPushButton *next_button_;