Fix crash when global search box is used after re-opening another project
Summary:
(remove search models from the search box before destruction)
FIXED-IN:3.1.0
Test Plan:
- Open a project
- Try to use the search box by entering something
Expected: searching works
- Close the project without closing KEXI
- Repeat step 2
Expected: nothing is found because project is not open (previously there were crashes here)
- (Test if opening another project works OK): Open other project in the same KEXI instance
- Repeat step 2
Expected: searching works
- Repeat step 4
Expected: nothing is found (no crashes)
- Close KEXI
Expected: clean exit, no crashes
Reviewers: piggz
Reviewed By: piggz
Tags: KEXI
Differential Revision: https://phabricator.kde.org/D10963