<table><tr><td style="">mgerstner created this revision.<br />Herald added a project: Frameworks.<br />Herald added a subscriber: kde-frameworks-devel.<br />mgerstner requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D18950">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Previously is was not possible to reuse a <tt style="background: #ebebeb; font-size: 13px;">KCompressionDevice</tt> object<br />
after a call to <tt style="background: #ebebeb; font-size: 13px;">open()</tt> failed and <tt style="background: #ebebeb; font-size: 13px;">propagateErrorCode()</tt> was called. A<br />
subsequent <tt style="background: #ebebeb; font-size: 13px;">open()</tt> would work but a later <tt style="background: #ebebeb; font-size: 13px;">close()</tt> will fail, because<br />
the older errorCode is still set.</p>

<p>By resetting the error code before doing an <tt style="background: #ebebeb; font-size: 13px;">open()</tt> this situation is<br />
avoided and reuse of objects becomes possible.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R243 KArchive</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D18950">https://phabricator.kde.org/D18950</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/kcompressiondevice.cpp</div></div></div><br /><div><strong>To: </strong>mgerstner<br /><strong>Cc: </strong>kde-frameworks-devel, michaelh, ngraham, bruns<br /></div>