From 09ea870445905d4d1135f0d44b8b012279d27b94 Mon Sep 17 00:00:00 2001 From: olf Date: Thu, 4 Jul 2024 22:38:12 +0200 Subject: [PATCH] [flowplayer/src/playlist.cpp] Convert unused `/home/nemo` references, too As discussed in issue #101. --- src/playlist.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/playlist.cpp b/src/playlist.cpp index 8f2269d..9e29f7f 100644 --- a/src/playlist.cpp +++ b/src/playlist.cpp @@ -258,10 +258,10 @@ void Playlist::addAlbumToList(QString artist, QString album, QString various) void Playlist::saveList(QString list) { - //qDebug() << "Saving playlist :" << list; + //qDebug() << "Saving playlist: " << list; /*QString archivo; - archivo = "/home/nemo/.config/cepiperez/playlists/" + list + ".xml"; + archivo = QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation) + "/playlists/" + list + ".xml"; QFile file( archivo ); file.open( QIODevice::Truncate | QIODevice::Text | QIODevice::ReadWrite); QTextStream out(&file); @@ -352,7 +352,7 @@ void Playlist::clearList(QString list) listado.clear(); //saveList(list); /*QSqlDatabase db = QSqlDatabase::addDatabase("QSQLITE"); - QString path("/home/nemo/.config/cepiperez/flowplayer.db"); + QString path(QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation) + "/flowplayer.db"); db.setDatabaseName(path); db.open();