1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 02:36:34 +01:00

Correct fix for #1479 and finally fix compile issue from two recent commits.

- Closes #1482
This commit is contained in:
S. Razi Alavizadeh 2014-10-03 04:04:59 +03:30
parent a21d803b94
commit 768e3ac143

View File

@ -142,6 +142,10 @@ void DataPaths::init()
// Profiles
m_paths[Profiles].append(m_paths[Config].first() + QLatin1String("/profiles"));
// Make sure the Config and Temp pathes exist
QDir dir;
dir.mkpath(m_paths[Config].first());
// Temp
#ifdef Q_OS_UNIX
const QByteArray &user = qgetenv("USER");
@ -150,12 +154,8 @@ void DataPaths::init()
m_paths[Temp].append(tempPath);
#else
m_paths[Temp].append(m_paths[Config].first() + QLatin1String("/tmp"));
#endif
// Make sure the Config and Temp pathes exist
QDir dir;
dir.mkpath(m_paths[Config].first());
dir.mkpath(m_paths[Temp].first());
#endif
// We also allow to load data from Config path
m_paths[Translations].append(m_paths[Config].first() + QLatin1String("/locale"));