From 663d27a3f780102518e9bdef0fbaf5e5d1b16d52 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 23 Jan 2012 14:27:04 -0600 Subject: [PATCH] Automated update of tqt3 from qt3 --- src/kernel/qapplication_x11.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/kernel/qapplication_x11.cpp b/src/kernel/qapplication_x11.cpp index 5011351b..33806f0f 100644 --- a/src/kernel/qapplication_x11.cpp +++ b/src/kernel/qapplication_x11.cpp @@ -1632,6 +1632,12 @@ void qt_init_internal( int *argcptr, char **argv, setlocale( LC_ALL, "" ); // use correct char set mapping setlocale( LC_NUMERIC, "C" ); // make sprintf()/scanf() work +#if defined(QT_THREAD_SUPPORT) + if ( qt_is_gui_used ) { + XInitThreads(); + } +#endif + if ( display ) { // TQt part of other application