Fix potential crash when Qt3 is used as part of another application due to multiple calls to XLib threading init function

(cherry picked from commit 1db4f237a7)
v3.5.13-sru
Timothy Pearson 13 years ago committed by Slávek Banko
parent d0c6decc22
commit 8969326a16

@ -1633,7 +1633,8 @@ void qt_init_internal( int *argcptr, char **argv,
setlocale( LC_NUMERIC, "C" ); // make sprintf()/scanf() work
#if defined(QT_THREAD_SUPPORT)
if ( qt_is_gui_used ) {
if (( qt_is_gui_used ) && ( !display )) {
// If Qt is running standalone with a GUI, initialize X11 threading
XInitThreads();
}
#endif

Loading…
Cancel
Save