diff options
Diffstat (limited to 'src/fbgui/main.cpp')
-rw-r--r-- | src/fbgui/main.cpp | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/src/fbgui/main.cpp b/src/fbgui/main.cpp index d883469..051ce65 100644 --- a/src/fbgui/main.cpp +++ b/src/fbgui/main.cpp @@ -55,6 +55,17 @@ int main(int argc, char *argv[]) { // The third parameter sets the application as the // GUI-Server (aswell as the GUI-Client). + QApplication app(argc, argv, QApplication::GuiServer); + app.setOrganizationName("team_projekt_2011"); + app.setApplicationName("prebootGUI"); + binPath = QApplication::applicationDirPath(); + + QTranslator translator; + translator.load(":" + QLocale::system().name()); + app.installTranslator(&translator); + + + // LOG4CXX Logger Init QFileInfo loggingConfInfo = QFileInfo(QDir::home(), ".fbgui.logging.conf"); QString loggingConfigFilePath; if (loggingConfInfo.exists()) @@ -74,14 +85,6 @@ int main(int argc, char *argv[]) { BasicConfigurator::configure(); } - QApplication app(argc, argv, QApplication::GuiServer); - app.setOrganizationName("team_projekt_2011"); - app.setApplicationName("prebootGUI"); - binPath = QApplication::applicationDirPath(); - - QTranslator translator; - translator.load(":" + QLocale::system().name()); - app.installTranslator(&translator); // parse command line arguments using getopt QMap<QString, QString> clOpts; |