mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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(".ogg"),
|
||||||
qstr(".flac"),
|
qstr(".flac"),
|
||||||
};
|
};
|
||||||
if (!CheckMimeOrExtensions(filepath, result->filemime, mimes, extensions)) {
|
if (!filepath.isEmpty()
|
||||||
|
&& !CheckMimeOrExtensions(
|
||||||
|
filepath,
|
||||||
|
result->filemime,
|
||||||
|
mimes,
|
||||||
|
extensions)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue