parent
4684e8a24f
commit
63b522648e
1 changed files with 5 additions and 0 deletions
|
|
@ -855,6 +855,11 @@ QString Lyrics::lyricsDir() const {
|
|||
if (dir.isEmpty()) {
|
||||
return {};
|
||||
}
|
||||
if (dir == u"~"_s) {
|
||||
dir = QDir::homePath();
|
||||
} else if (dir.startsWith(u"~/"_s)) {
|
||||
dir.replace(0, 1, QDir::homePath());
|
||||
}
|
||||
while (dir.endsWith(QLatin1Char('/')) && dir.size() > 1) {
|
||||
dir.chop(1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue