Skip to content
Commit 5b8c42f1 authored by Hartmut Riesenbeck's avatar Hartmut Riesenbeck
Browse files

Fix error when destroying an default constructed KEduVocDocument

When a KEduVocDocument which was constructed by the default constructor
becomes destructed, the error message "QFile::remove: Empty or null
file name" is given on stderr.

Since the file name of the KAutoSaveFile was not set in the default
constructor, the KAutoSaveFile::remove() method in ~KEduVocDocument()
have given this error message. Removed this method call and the
following KAutoSaveFile::releaseLock(), because they are called in the
KAutoSaveFile destructor as well but with check for file name.

Added unit test emptydocumenttest to proof the bugfix.

REVIEW: 127717
parent 3a92aa88
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment