<table><tr><td style="">rkflx added a comment.
</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/D7495" rel="noreferrer">View Revision</a></tr></table><br /><div><div><p>Yay for reviews finding problems before users do \o/</p>
<blockquote style="border-left: 3px solid #a7b5bf; color: #464c5c; font-style: italic; margin: 4px 0 12px 0; padding: 4px 12px; background-color: #f8f9fc;"><p>majorly unchanged for years, and if someone breaks it, well it'll break and we'll fix it.</p></blockquote>
<p>If we can choose between a good and an improved solution, I'd say we should always pick the latter. Maybe I should have added a comment only instead of implementing it myself, but I wanted to check how it would work out and spare you some work. You have seen <a href="https://bugs.kde.org/show_bug.cgi?id=384142" class="remarkup-link" target="_blank" rel="noreferrer">384142</a> coming in only yesterday, please don't risk more crashes unnecessarily.</p>
<blockquote style="border-left: 3px solid #a7b5bf; color: #464c5c; font-style: italic; margin: 4px 0 12px 0; padding: 4px 12px; background-color: #f8f9fc;"><p><tt style="background: #ebebeb; font-size: 13px;">SetBoolToFalseOnScopeExit</tt> [...] should be less than 10 lines of code.</p></blockquote>
<p>That's both harder to understand and longer than the additional 0 lines of code for the RAII-mutex solution, as well as less compact in terms of the number of separate code fragments.</p>
<p>I'm all for fixing the original issue, but let's do it properly.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R223 Okular</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D7495" rel="noreferrer">https://phabricator.kde.org/D7495</a></div></div><br /><div><strong>To: </strong>aacid<br /><strong>Cc: </strong>rkflx, Okular, aacid<br /></div>