From fc09ec2ca87f1c7c82d95807305b0b14c9f25ad5 Mon Sep 17 00:00:00 2001 From: Szybet <53944559+Szybet@users.noreply.github.com> Date: Sun, 10 Sep 2023 00:01:32 +0200 Subject: [PATCH 1/2] Update audiodialog.cpp --- src/widgets/dialogs/audio/audiodialog.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/widgets/dialogs/audio/audiodialog.cpp b/src/widgets/dialogs/audio/audiodialog.cpp index 7d89d23..65c7ec1 100644 --- a/src/widgets/dialogs/audio/audiodialog.cpp +++ b/src/widgets/dialogs/audio/audiodialog.cpp @@ -154,6 +154,12 @@ void audioDialog::refreshFileList() { } // For example in this path: '/mnt/onboard/onboard/music/' (with '/' at the end) QString path = readFile(".config/e-2-audio/path").replace("\n", ""); + + // Needed by gui apps + if(path.isEmpty()) { + path = "/mnt/onboard/onboard/music/"; + } + log("Path for audio files: '" + path + "'", className); QDir dir{path}; // Other file formats could be added, by building more libraries From 34e323131eb93035edea9c97a475433760d05812 Mon Sep 17 00:00:00 2001 From: Nicolas Mailloux <63172576+tux-linux@users.noreply.github.com> Date: Sat, 9 Sep 2023 19:05:16 -0400 Subject: [PATCH 2/2] Small fix --- src/widgets/dialogs/audio/audiodialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/dialogs/audio/audiodialog.cpp b/src/widgets/dialogs/audio/audiodialog.cpp index 65c7ec1..502462a 100644 --- a/src/widgets/dialogs/audio/audiodialog.cpp +++ b/src/widgets/dialogs/audio/audiodialog.cpp @@ -155,7 +155,7 @@ void audioDialog::refreshFileList() { // For example in this path: '/mnt/onboard/onboard/music/' (with '/' at the end) QString path = readFile(".config/e-2-audio/path").replace("\n", ""); - // Needed by gui apps + // Needed by GUI user apps if(path.isEmpty()) { path = "/mnt/onboard/onboard/music/"; }