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.
Details
Details
- 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.
Diff Detail
Diff Detail
- Repository
- R338 KWordQuiz
- Branch
- master
- Lint
No Linters Available - Unit
No Unit Test Coverage - Build Status
Buildable 13666 Build 13684: arc lint + arc unit
src/kwordquiz.cpp | ||
---|---|---|
982 | Does not work with KWordQuizApp *a =static_cast<KWordQuizApp *>(w); KWQ refuses to close the window. Works fine without static_cast. |
src/kwordquiz.cpp | ||
---|---|---|
982 | That doesn't make sense to me. Why would it make a difference? |
src/kwordquiz.cpp | ||
---|---|---|
982 | I do not know. It is just the report with the results of testing (the above-mentioned procedure, can be easily proven). It would be nice if someone can explain this and why KWQ crashes every time when closed. Thanks in advance for your help. |
src/kwordquiz.cpp | ||
---|---|---|
986 | Do we really need this one? I would expect this KWordQuizApp instance to also be part of memberList. |
src/kwordquiz.cpp | ||
---|---|---|
986 | You are right. It is not needed. The reason that it appeared here is the wrong testing technique. I just pressed the close window button instead of Ctrl+Q. The next revision should put everything in the right place. Thanks. |