X-Git-Url: https://vaikene.ee/gitweb/pswgen11.html?a=blobdiff_plain;f=src%2Flibs%2FCommon%2Fglobals.cpp;h=5054bd1e05c71f1d4d8093277e564d7b3240a67f;hb=a81a943bee20df3c7eb34bafb3e3fe878facfe4e;hp=02aedd84d37a26a93ee8683b85213c1e8da2fe3a;hpb=f01d61fb753b347bbff2ffb7f224650ac3f9d81e;p=evaf
diff --git a/src/libs/Common/globals.cpp b/src/libs/Common/globals.cpp
index 02aedd8..5054bd1 100644
--- a/src/libs/Common/globals.cpp
+++ b/src/libs/Common/globals.cpp
@@ -3,7 +3,7 @@
* @brief Global constants and macros for eVaf
* @author Enar Vaikene
*
- * Copyright (c) 2011 Enar Vaikene
+ * Copyright (c) 2011-2012 Enar Vaikene
*
* This file is part of the eVaf C++ cross-platform application development framework.
*
@@ -47,12 +47,6 @@ bool eVaf::Common::init()
if (!app->init())
return false;
}
- eVaf::Common::Internal::Logger * logger =
- qobject_cast(eVaf::Common::iLogger::instance());
- if (logger) {
- if (!logger->init())
- return false;
- }
eVaf::Common::Internal::Config * config =
qobject_cast(eVaf::Common::iConfig::instance());
if (config) {
@@ -65,6 +59,12 @@ bool eVaf::Common::init()
if (!prop->init())
return false;
}
+ eVaf::Common::Internal::Logger * logger =
+ qobject_cast(eVaf::Common::iLogger::instance());
+ if (logger) {
+ if (!logger->init())
+ return false;
+ }
EVAF_INFO("%s-Globals initialized", VER_MODULE_NAME_STR);