KitMatcher: Make sure matcher function is properly initialized

This fixes some crashes in the TargetSetupPage and other places.

Also remove isValid method again. It was introduced to fix the same
crash that this patch also addresses, but introduces a bit more
complexity than this approach.

Change-Id: Iee80a2baffb2854b6fad8931d23a1da6d218f919
Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
Tobias Hunger
2014-07-29 10:41:26 +02:00
committed by hjk
parent 4a60aa7f05
commit a93cc37e41
3 changed files with 6 additions and 13 deletions

View File

@@ -102,9 +102,7 @@ public:
ProjectPrivate::ProjectPrivate() :
m_activeTarget(0),
m_editorConfiguration(new EditorConfiguration()),
m_accessor(0),
m_requiredKitMatcher([](const Kit*) { return true; }),
m_preferredKitMatcher([](const Kit*) { return true; })
m_accessor(0)
{ }
ProjectPrivate::~ProjectPrivate()