This is an automatically generated e-mail. To reply, visit: https://git.reviewboard.kde.org/r/114724/

This change has been marked as submitted.


Review request for Kate.
By Michal Humpula.

Updated Dec. 31, 2013, 1:31 p.m.

Bugs: 323693
Repository: kate

Description

In normal situation the KSaveFile will be saving to blank file, so no need to call truncate manualy, but in case the folder is unwritable, the KSaveFile will write directly over the file. So the patch ensures that kate always truncates the underlying file.

Test is a little bit clumsy, but does the thing.

Diffs

  • part/buffer/katetextbuffer.cpp (087f450)
  • tests/katetextbuffertest.cpp (ffa566f)
  • tests/katetextbuffertest.h (254a59e)

View Diff