change temporary profile directory

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

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))