mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Fixed checking for song without file path.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user