Web: fix storage paths of web content

This commit is contained in:
wmayer
2021-12-19 16:56:48 +01:00
parent b3ba98fafe
commit 301c2ff4c8

View File

@@ -495,7 +495,7 @@ BrowserView::BrowserView(QWidget* parent)
// QWebEngine doesn't support direct access to network
// nor rendering access
QWebEngineProfile *profile = view->page()->profile();
QString basePath = QLatin1String(App::Application::getUserAppDataDir().c_str()) + QLatin1String("webdata");
QString basePath = QString::fromStdString(App::Application::getUserAppDataDir()) + QLatin1String("webdata/");
profile->setPersistentStoragePath(basePath + QLatin1String("persistent"));
profile->setCachePath(basePath + QLatin1String("cache"));