Fix code style and errors
This commit is contained in:
@@ -422,10 +422,7 @@ bool AlbumCoverChoiceController::CanAcceptDrag(const QDragEnterEvent *e) {
|
||||
const QString suffix = QFileInfo(url.toLocalFile()).suffix().toLower();
|
||||
if (IsKnownImageExtension(suffix)) return true;
|
||||
}
|
||||
if (e->mimeData()->hasImage()) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
return e->mimeData()->hasImage();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -31,8 +31,9 @@
|
||||
#include "core/tagreaderclient.h"
|
||||
#include "coverexportrunnable.h"
|
||||
|
||||
CoverExportRunnable::CoverExportRunnable(const AlbumCoverExport::DialogResult &dialog_result, const Song &song)
|
||||
: dialog_result_(dialog_result), song_(song) {}
|
||||
CoverExportRunnable::CoverExportRunnable(const AlbumCoverExport::DialogResult &dialog_result, const Song &song) :
|
||||
dialog_result_(dialog_result),
|
||||
song_(song) {}
|
||||
|
||||
void CoverExportRunnable::run() {
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@ signals:
|
||||
|
||||
AlbumCoverExport::DialogResult dialog_result_;
|
||||
Song song_;
|
||||
AlbumCoverExporter* album_cover_exporter_;
|
||||
|
||||
};
|
||||
|
||||
#endif // COVEREXPORTRUNNABLE_H
|
||||
|
||||
Reference in New Issue
Block a user