mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Fixed checking for song without file path.
This commit is contained in:
parent
590e6c8e9d
commit
d605b18ec0
1 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue