aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/General
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/General')
-rw-r--r--src/plugins/General/converter/converterdialog.cpp6
-rw-r--r--src/plugins/General/scrobbler/scrobbler.cpp2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/General/converter/converterdialog.cpp b/src/plugins/General/converter/converterdialog.cpp
index cd602b389..ab75ed07f 100644
--- a/src/plugins/General/converter/converterdialog.cpp
+++ b/src/plugins/General/converter/converterdialog.cpp
@@ -53,7 +53,7 @@ ConverterDialog::ConverterDialog(QList <PlayListTrack *> items, QWidget *parent
createMenus();
readPresets(":/converter/presets.conf");
- readPresets(QDir::homePath() + "/.qmmp/converter/presets.conf");
+ readPresets(Qmmp::configDir() + "converter/presets.conf");
}
ConverterDialog::~ConverterDialog()
@@ -233,10 +233,10 @@ void ConverterDialog::readPresets(const QString &path)
void ConverterDialog::savePresets()
{
- QDir dir(QDir::homePath() + "/.qmmp/");
+ QDir dir(Qmmp::configDir());
dir.mkdir("converter");
- QFile file(QDir::homePath() + "/.qmmp/converter/presets.conf");
+ QFile file(Qmmp::configDir() + "converter/presets.conf");
if(!file.open(QIODevice::WriteOnly | QIODevice::Truncate))
{
qWarning("ConverterDialog: unable to save presets; error %s", qPrintable(file.errorString()));
diff --git a/src/plugins/General/scrobbler/scrobbler.cpp b/src/plugins/General/scrobbler/scrobbler.cpp
index 065c55f38..852cbe4ea 100644
--- a/src/plugins/General/scrobbler/scrobbler.cpp
+++ b/src/plugins/General/scrobbler/scrobbler.cpp
@@ -88,7 +88,7 @@ Scrobbler::Scrobbler(const QString &scrobblerUrl, const QString &name, QObject *
m_name = name;
m_state = Qmmp::Stopped;
m_time = new QTime();
- m_cache = new ScrobblerCache(QDir::homePath() +"/.qmmp/scrobbler_"+name+".cache");
+ m_cache = new ScrobblerCache(Qmmp::configDir() +"scrobbler_"+name+".cache");
m_ua = QString("qmmp-plugins/%1").arg(Qmmp::strVersion().toLower()).toAscii();
m_http = new QNetworkAccessManager(this);
m_core = SoundCore::instance();