Skip to content

Commit af08fd1

Browse files
authored
Merge pull request #13209 from daschuer/gh13204
Allow to drop files to decks with unsupported or no file extensions
2 parents b3bd939 + a6033ae commit af08fd1

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/sources/soundsourceproxy.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,10 @@ bool SoundSourceProxy::isUrlSupported(const QUrl& url) {
284284

285285
// static
286286
bool SoundSourceProxy::isFileSupported(const mixxx::FileInfo& fileInfo) {
287-
return isFileNameSupported(fileInfo.fileName());
287+
const QString fileType =
288+
mixxx::SoundSource::getTypeFromFile(fileInfo.asQFileInfo());
289+
qDebug() << "isFileSupported" << fileType;
290+
return isFileTypeSupported(fileType);
288291
}
289292

290293
// static

0 commit comments

Comments
 (0)