Close KWordQuiz documents before closing the app
Summary: The current KWordQuiz fails to close its documents and thus to remove the lock in ~/.local/share/stalefiles/kwordquiz. This issue prevents them to be saved after the next edits (KwordQuiz reports that they are in use by some other application). Moreover, this (and some other things that I could not detect) leads to KwordQuiz crash every time when you close the documents.
Test Plan:
- Open KWordQuiz.
- Type something.
- Press Ctrl+Q.
- Save document somewhere.
- Open KwordQuiz and use "File->Recent documents" to open the saved document again.
- Type something.
- Press Ctrl+Q.
- Confirm saving the document.
- The document should be saved without warnings.
Reviewers: KDE Edu, aacid
Reviewed By: aacid
Subscribers: aacid, apol, kde-edu
Tags: KDE Edu
Differential Revision: https://phabricator.kde.org/D22299