change temporary profile directory

This commit is contained in:
arcan1s committed 2014-08-18 12:49:36 +04:00
1 parent f90b2d97a7
commit 709431ead2
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -104,7 +104,7 @@ QString NetctlProfile::createProfile(const QString profile, const QMap<QString,
if (debug) qDebug() << PDEBUG;
if (debug) qDebug() << PDEBUG << ":" << "Profile" << profile;
QString profileTempName = QDir::homePath() + QString("/.cache/") + QFileInfo(profile).fileName();
QString profileTempName = QDir::tempPath() + QDir::separator() + QFileInfo(profile).fileName();
QFile profileFile(profileTempName);
if (debug) qDebug() << PDEBUG << ":" << "Save to" << profileTempName;
if (!profileFile.open(QIODevice::WriteOnly | QIODevice::Text))