1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

[Windows] Use %LOCALAPPDATA% only if user doesn't have config in older paths

This commit is contained in:
nowrep 2014-02-13 19:24:12 +01:00
parent 84eea976c2
commit 156a14dfb6

View File

@ -212,10 +212,16 @@ MainApplication::MainApplication(int &argc, char** argv)
}
QDir confPath = QDir(dataLocation);
QDir homePath = QDir(QDir::homePath() + QLatin1String("/.qupzilla/"));
if (!homePath.exists()) {
homePath = QDir::homePath() + QLatin1String("/.config/qupzilla/");
}
#else // Unix
QDir confPath = QDir(QDir::homePath() + QLatin1String("/.config/qupzilla/"));
#endif
QDir homePath = QDir(QDir::homePath() + QLatin1String("/.qupzilla/"));
#endif
if (homePath.exists() && !confPath.exists()) {
PROFILEDIR = homePath.absolutePath() + QLatin1Char('/');