From 8882cfa60c6bb9e45e936b9e851aacf965c6562a 2012-11-07 13:00:54 From: florianlink Date: 2012-11-07 13:00:54 Subject: [PATCH] moved setupSharedLibrarySuffixes() to a place where PythonQt::self() is initialized git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@235 ea8d5007-eb21-0410-b261-ccb3ea6e24a9 --- diff --git a/src/PythonQt.cpp b/src/PythonQt.cpp index 54a7a54..bcbbdfb 100644 --- a/src/PythonQt.cpp +++ b/src/PythonQt.cpp @@ -71,6 +71,8 @@ void PythonQt::init(int flags, const QByteArray& pythonQtModuleName) { if (!_self) { _self = new PythonQt(flags, pythonQtModuleName); + + PythonQt::priv()->setupSharedLibrarySuffixes(); PythonQtMethodInfo::addParameterTypeAlias("QObjectList", "QList"); qRegisterMetaType >("QList"); @@ -212,8 +214,6 @@ PythonQt::PythonQt(int flags, const QByteArray& pythonQtModuleName) initPythonQtModule(flags & RedirectStdOut, pythonQtModuleName); - _p->setupSharedLibrarySuffixes(); - } PythonQt::~PythonQt() {