You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
657 B
17 lines
657 B
Calling qsettings before constructing qapplications causes a dead-lock.
|
|
|
|
http://sourceforge.net/tracker/?func=detail&aid=3168620&group_id=4932&atid=104932
|
|
http://developer.qt.nokia.com/forums/viewthread/10365
|
|
|
|
|
|
--- ./src/corelib/io/qsettings.cpp.orig
|
|
+++ ./src/corelib/io/qsettings.cpp
|
|
@@ -122,7 +122,7 @@
|
|
Q_GLOBAL_STATIC(ConfFileCache, unusedCacheFunc)
|
|
Q_GLOBAL_STATIC(PathHash, pathHashFunc)
|
|
Q_GLOBAL_STATIC(CustomFormatVector, customFormatVectorFunc)
|
|
-Q_GLOBAL_STATIC(QMutex, globalMutex)
|
|
+Q_GLOBAL_STATIC_WITH_ARGS(QMutex, globalMutex, (QMutex::Recursive))
|
|
static QSettings::Format globalDefaultFormat = QSettings::NativeFormat;
|
|
|
|
#ifndef Q_OS_WIN
|
|
|