aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-02-07 19:23:20 +0100
committerdec05eba <dec05eba@protonmail.com>2024-02-07 19:23:20 +0100
commit02bc291a920dac5bd75f322045e0722d54f45b9b (patch)
tree75806eaa67e6d685d8bb9a61623fedc50ac66141 /src
parenta5b86659d972d57d495c5a6fa907a8f7a86deab2 (diff)
Skip xdg users dir comment lines
Diffstat (limited to 'src')
-rw-r--r--src/Config.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Config.cpp b/src/Config.cpp
index 2938338..191beb4 100644
--- a/src/Config.cpp
+++ b/src/Config.cpp
@@ -39,6 +39,9 @@ namespace QuickMedia {
if(len < 2)
continue;
+ if(line[0] == '#')
+ continue;
+
if(line[len - 1] == '\n') {
line[len - 1] = '\0';
len--;