summaryrefslogtreecommitdiff
blob: d3113a0779a00208dbb38d44e289ae7bef640a1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
--- branches/0.6.5/kadu-core/main.cpp	2009/01/04 13:18:33	6032
+++ branches/0.6.5/kadu-core/main.cpp	2009/02/22 10:45:49	6261
@@ -153,6 +153,11 @@
 	}
 
 #endif
+
+	kdebugm(KDEBUG_INFO, "before creation of new KaduApplication\n");
+	new KaduApplication(argc, argv);
+	kdebugm(KDEBUG_INFO, "after creation of new KaduApplication\n");
+
 	debug_mask = -1;
 	qInstallMsgHandler(kaduQtMessageHandler);
 	xml_config_file = new XmlConfigFile();
@@ -199,7 +204,6 @@
 		if (freopen(path, "w+", stderr) == 0)
 			fprintf(stdout, "freopen: %s\n", strerror(errno));
 #endif
-
 	}
 
 #ifdef DEBUG_ENABLED
@@ -227,10 +231,6 @@
 		exit(10);
 	}
 
-	kdebugm(KDEBUG_INFO, "before creation of new KaduApplication\n");
-	new KaduApplication(argc, argv);
-	kdebugm(KDEBUG_INFO, "after creation of new KaduApplication\n");
-
 	defaultFont = new QFont(qApp->font());
 	defaultFontInfo = new QFontInfo(*defaultFont);
 	// loading translation