make profile evaluator re-entrant

the last step was moving the statics to a common class which is
initialized at startup.
This commit is contained in:
Oswald Buddenhagen
2010-02-08 16:47:25 +01:00
parent a4e4c44ac2
commit 1f088a70ba
3 changed files with 155 additions and 118 deletions

View File

@@ -93,6 +93,8 @@ bool Qt4ProjectManagerPlugin::initialize(const QStringList &arguments, QString *
{
Q_UNUSED(arguments)
ProFileEvaluator::initialize();
Core::ICore *core = Core::ICore::instance();
if (!core->mimeDatabase()->addMimeTypes(QLatin1String(":qt4projectmanager/Qt4ProjectManager.mimetypes.xml"), errorMessage))
return false;