mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00: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