2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Fixed checking for song without file path.

This commit is contained in:
23rd
2019-04-01 18:48:14 +03:00
committed by John Preston
parent 590e6c8e9d
commit d605b18ec0

View File

@@ -608,7 +608,12 @@ bool FileLoadTask::CheckForSong(
qstr(".ogg"),
qstr(".flac"),
};
if (!CheckMimeOrExtensions(filepath, result->filemime, mimes, extensions)) {
if (!filepath.isEmpty()
&& !CheckMimeOrExtensions(
filepath,
result->filemime,
mimes,
extensions)) {
return false;
}