Commit e2ccbc8c authored by Yerrey Dev's avatar Yerrey Dev Committed by Nate Graham
Browse files

Fix crash when QUrl in Enqueued files is empty

Fixes the issue where the program crashes when you navigate into a folder where
there are no playable music files, and attempt to hit the "Play" or "Add to
Playlist" buttons on top right navigation bar. In the fix we just return in
case the enqueued file QUrl is empty.

BUG: 428218
FIXED-IN: 21.12.2
parent 89b7fb59
Pipeline #121947 passed with stage
in 20 seconds
......@@ -205,6 +205,11 @@ void FileBrowserProxyModel::connectPlayList()
void FileBrowserProxyModel::recursiveEnqueue()
auto [rootUrl, isDirectory] = mPendingEntries.front();
if (rootUrl.isEmpty()) {
if (isDirectory) {
mCurentUrl = rootUrl;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment