Commit 5194639c authored by Bernhard Beschow's avatar Bernhard Beschow
Browse files

mention the Qt bug in the workaround for bug 288612

(cherry picked from commit 743899e8)
CCBUG:288612
parent 68e04525
......@@ -163,13 +163,13 @@ MarbleModel::MarbleModel( QObject *parent )
d( new MarbleModelPrivate() )
{
#if (QT_VERSION >= 0x040700 && QT_VERSION < 0x040800)
// KDE bug 288612, comment 12: Due to some bug in Qt 4.7 a segfault will occur
// if the first QNetworkConfigurationManager instance is created by a thread
// that is not the GUI thread. This leads to segfaults at startup when e.g.
// reverse geocoding is called very early. Therefore we create an instance here
// before any runners will work.
// QNetworkConfigurationManager was introduced in Qt 4.7, the segfault does not
// happen with 4.8, thus the Qt version check.
// fix for KDE bug 288612
// Due to a race condition in Qt 4.7 (QTBUG-22107), a segfault might occur at
// startup when e.g. reverse geocoding is called very early.
// The race condition can be avoided by instantiating QNetworkConfigurationManager
// when only one thread is running (i.e. here).
// QNetworkConfigurationManager was introduced in Qt 4.7, the bug is fixed
// in 4.8, thus the Qt version check.
new QNetworkConfigurationManager( this );
#endif
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment