additionaly test the remove of the dir, too.
CCBUG: 358116
mlaurent |
KDE PIM |
additionaly test the remove of the dir, too.
CCBUG: 358116
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
messageviewer/src/viewer/nodehelper.cpp | ||
---|---|---|
92 ↗ | (On Diff #2135) | no. as you clean up directly all temp file/dir So it's not the good fix here. |
messageviewer/src/viewer/nodehelper.cpp | ||
---|---|---|
92 ↗ | (On Diff #2136) | Well Otp only creates a NodeHelper if you don't give him an existing one. Looking through all cases NodeHelper/ObjectTreeParser is used:
-> they would benefit from the forceClean
-> using attachments but no files (KMime::Content)
->using attachments but no files (KMime::Content) *pim/messagelib/messageviewer/src/utils/messageviewerutil.cpp: ObjectTreeParser otp(&emptySource, 0, 0, false, false);
-> no handling of attachments
-> nodeHelper lives as long as the ViewerPrivate lives, and in the destructor of ViewerPrivate forceClean is triggerd So my conclusion is: we don't introduce the old bug back, but clean up in more cases. |
The code has been fixed (slightly differently) meanwhile, but I'll push the unittest now (which passes).