Try to fix Windows sqlite cache PATH

This commit is contained in:
Laurent Trinques
2019-10-20 17:25:54 +02:00
parent 5fb7414b45
commit fae2b0dab0

View File

@@ -92,7 +92,11 @@ QETApp::QETApp() :
setSplashScreenStep(tr("Chargement... Initialisation du cache des collections d'éléments", "splash screen caption"));
if (!collections_cache_) {
#if defined(Q_OS_WIN32) || defined(Q_OS_WIN64)
QString cache_path = (QDir::homePath() + "/Application Data/qet/elements_cache.sqlite";
#else
QString cache_path = QETApp::configDir() + "/elements_cache.sqlite";
#endif
collections_cache_ = new ElementsCollectionCache(cache_path, this);
collections_cache_->setLocale(langFromSetting());
}