From 02739ec140694a55e3123c6553a729edd2e97b53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Tue, 1 Jun 2021 19:34:54 +0200 Subject: [PATCH] Do not reuse v1 docroot and template paths They can go stale and break v1 browsing --- YACReaderLibrary/server/startup.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/YACReaderLibrary/server/startup.cpp b/YACReaderLibrary/server/startup.cpp index 5afa00d0..b31c475b 100644 --- a/YACReaderLibrary/server/startup.cpp +++ b/YACReaderLibrary/server/startup.cpp @@ -54,8 +54,7 @@ void Startup::start(quint16 port) templatePath = QFileInfo(QCoreApplication::applicationDirPath(), baseTemplatePath).absoluteFilePath(); #endif - if (templateSettings->value("path").isNull()) - templateSettings->setValue("path", templatePath); + templateSettings->setValue("path", templatePath); Static::templateLoader = new TemplateCache(templateSettings, app); @@ -85,8 +84,7 @@ void Startup::start(quint16 port) docroot = QFileInfo(QCoreApplication::applicationDirPath(), basedocroot).absoluteFilePath(); #endif - if (fileSettings->value("path").isNull()) - fileSettings->setValue("path", docroot); + fileSettings->setValue("path", docroot); Static::staticFileController = new StaticFileController(fileSettings, app);