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();
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user