diff --git a/src/covermanager/albumcoverchoicecontroller.cpp b/src/covermanager/albumcoverchoicecontroller.cpp index b776a23c0..a176c2b6d 100644 --- a/src/covermanager/albumcoverchoicecontroller.cpp +++ b/src/covermanager/albumcoverchoicecontroller.cpp @@ -245,7 +245,7 @@ void AlbumCoverChoiceController::SaveCoverToFileManual(const Song &song, const A fileinfo.setFile(save_filename); } - if (!QImageWriter::supportedImageFormats().contains(fileinfo.completeSuffix())) { + if (!QImageWriter::supportedImageFormats().contains(fileinfo.completeSuffix().toUtf8())) { save_filename = Utilities::PathWithoutFilenameExtension(save_filename) + ".jpg"; fileinfo.setFile(save_filename); } @@ -653,7 +653,7 @@ void AlbumCoverChoiceController::SaveCoverEmbeddedAutomatic(const Song &song, co #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) QFuture future = QtConcurrent::run(&CollectionBackend::GetAlbumSongs, app_->collection_backend(), song.effective_albumartist(), song.effective_album(), QueryOptions()); #else - QFuture future = QtConcurrent::run(app_->collection_backend(), &CollectionBackend::GetAlbumSongs, song->effective_albumartist(), song->effective_album(), QueryOptions()); + QFuture future = QtConcurrent::run(app_->collection_backend(), &CollectionBackend::GetAlbumSongs, song.effective_albumartist(), song.effective_album(), QueryOptions()); #endif QFutureWatcher *watcher = new QFutureWatcher(); watcher->setFuture(future); diff --git a/src/covermanager/albumcovermanager.cpp b/src/covermanager/albumcovermanager.cpp index 6d0fea621..0e7f480a5 100644 --- a/src/covermanager/albumcovermanager.cpp +++ b/src/covermanager/albumcovermanager.cpp @@ -368,7 +368,7 @@ void AlbumCoverManager::Reset() { } if (ui_->artists->selectedItems().isEmpty()) { - ui_->artists->selectionModel()->setCurrentIndex(ui_->artists->indexFromItem(all_artists_), QItemSelectionModel::Clear); + ui_->artists->setCurrentItem(all_artists_); } }