diff options
Diffstat (limited to 'src/main.cpp')
-rwxr-xr-x | src/main.cpp | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/src/main.cpp b/src/main.cpp index dded8ed..826ddfe 100755 --- a/src/main.cpp +++ b/src/main.cpp @@ -19,7 +19,6 @@ #include "MainWindow.h" -// -- #include "debugging/TSLogger.h" // -- #include "IndentHandler.h" #include "SettingsPaths.h" // -- #include "UiGuiIndentServer.h" @@ -37,8 +36,6 @@ #include <tclap/CmdLine.h> -// -- using namespace tschweitzer::debugging; - /*! /brief Entry point to UniversalIndentGUI application. @@ -128,20 +125,11 @@ int main(int argc, char *argv[]) // -- UiGuiIndentServer server; MainWindow *mainWindow = NULL; // -- IndentHandler *indentHandler = NULL; -// -- - // Init and install the logger function. - // Setting UTF-8 as default 8-Bit encoding to ensure that tqDebug does no false string conversion. + + // Setting UTF-8 as default 8-Bit encoding TQTextCodec::setCodecForCStrings(TQTextCodec::codecForName("UTF-8")); TQTextCodec::setCodecForLocale(TQTextCodec::codecForName("UTF-8")); -// -- // Force creation of an TSLogger instance here, to avoid recursion with SettingsPaths init function. -// -- #ifdef _DEBUG -// -- TSLogger::getInstance(0); -// -- #else -// -- TSLogger::getInstance(verboseLevel); -// -- #endif -// -- qInstallMsgHandler(TSLogger::messageHandler); -// -- TSLogger::messageHandler(TSLoggerInfoMsg, TQString("Starting UiGUI Version %1 %2").arg(PROGRAM_VERSION_STRING).toAscii()); -// -- + // Start normal with full gui and without server. if (!startAsPlugin && !startAsServer) { mainWindow = new MainWindow(file2OpenOnStart); @@ -174,7 +162,5 @@ int main(int argc, char *argv[]) // -- delete indentHandler; delete mainWindow; -// -- TSLogger::deleteInstance(); - return returnValue; } |