Do not delete m_filter on the destructor
authorAlbert Astals Cid <albert.astals@canonical.com>
Thu, 17 Apr 2014 10:57:09 +0000 (12:57 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 17 Apr 2014 13:54:54 +0000 (15:54 +0200)
commitb5017b863eaeb2ff5ced656488103b977e35dcbb
tree02a18862b7409247e4a590703a3f22b243a5547f
parentd147efd5e34f27b003075c4456b4a12dc5888d61
Do not delete m_filter on the destructor

It is totally unexpected that QDeclarativeOrganizerModel takes
ownership of the filter passed in setFilter given that filter
will coming from the QML side.

Change-Id: Ib0e7453961fdadab40b38acbdda147c462e321db
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
src/imports/organizer/qdeclarativeorganizermodel.cpp
tests/auto/organizer/qmlorganizer/testcases/tst_organizermodel.qml