diff options
author | Chris Xiong <chirs241097@gmail.com> | 2016-01-16 16:46:27 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2016-01-16 16:46:27 +0800 |
commit | ebda8030fdb70a8162c67947dd980b59337f2d05 (patch) | |
tree | 3ef4b43e8ca4f58788888e18d9feaa4cf74f5107 /qmpsettingswindow.cpp | |
parent | e3a5241953051e97978ac42fa278572ae735abb3 (diff) | |
download | QMidiPlayer-ebda8030fdb70a8162c67947dd980b59337f2d05.tar.xz |
Peaceful Romancer. (WTF)0.6.2-2
Diffstat (limited to 'qmpsettingswindow.cpp')
-rw-r--r-- | qmpsettingswindow.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qmpsettingswindow.cpp b/qmpsettingswindow.cpp index b55c5b8..465bbc8 100644 --- a/qmpsettingswindow.cpp +++ b/qmpsettingswindow.cpp @@ -1,4 +1,5 @@ #include <QFileDialog> +#include <QDir> #include "qmpsettingswindow.hpp" #include "ui_qmpsettingswindow.h" #include "qmpmainwindow.hpp" @@ -17,7 +18,7 @@ qmpSettingsWindow::qmpSettingsWindow(QWidget *parent) : { ui->setupUi(this); connect(this,SIGNAL(dialogClosing()),parent,SLOT(dialogClosed())); - settings=new QSettings(QString(getenv("HOME"))+QString("/.config/qmprc"),QSettings::IniFormat); + settings=new QSettings(QDir::homePath()+QString("/.config/qmprc"),QSettings::IniFormat); settingsInit(); } |