Some more cleanup on the build process

This commit is contained in:
emeric
2015-09-27 20:29:14 +02:00
parent 1e2c649a3e
commit 943bac2b47
5 changed files with 24 additions and 40 deletions
View File
-7
View File
@@ -29,9 +29,6 @@
#include "service/ServiceManager.hpp"
#include "service/DatabaseUpdateService.hpp"
#if defined HAVE_LMSAPI
#include "service/LmsAPIServerService.hpp"
#endif
#include <Wt/WServer>
@@ -63,10 +60,6 @@ int main(int argc, char* argv[])
serviceManager.add( std::make_shared<Service::DatabaseUpdateService>(*connectionPool));
#if defined HAVE_LMSAPI
serviceManager.add( std::make_shared<Service::LmsAPIService>(*connectionPool));
#endif
// bind entry point
server.addEntryPoint(Wt::Application, boost::bind(UserInterface::LmsApplication::create, _1, boost::ref(*connectionPool)));
+2
View File
@@ -113,6 +113,8 @@ LmsApplication::LmsApplication(const Wt::WEnvironment& env, Wt::Dbo::SqlConnecti
firstConnection = (Database::User::getAll(DboSession()).size() == 0);
}
LMS_LOG(UI, DEBUG) << "Creating root widget. First connection = " << std::boolalpha << firstConnection;
// If here is no account in the database, launch the first connection wizard
if (firstConnection)
createFirstConnectionUI();