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);