<table><tr><td style="">sitter created this revision.<br />Restricted Application added a project: Frameworks.<br />Restricted Application added a subscriber: Frameworks.
</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/D6624" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>When enabling accessibility qaccessible will automatically add a11y support<br />
constructs to core qt types such as qtableview.<br />
Unfortunately for qtableview specifically a change of the layout/size will<br />
discard the accessible objects modeling the individual cells in our table.<br />
Combined with the way we control layout through the model [I am not sure<br />
why we do this to begin with] this can result in call chains where<br />
qaccessible triggers a resizeEvent which we'll handle by rejiggering<br />
our model to get a new layout, resulting in qaccessible deleting the<br />
object which originally caused the event and ending in a segfault.</p>
<p>To prevent this problem we delay the rejiggering of our model by running<br />
the call through the eventloop (i.e. the resize is executed once the stack<br />
unwinds again to the event loop).</p>
<p>CHANGELOG: Fixed a crash when searching with accessibility support enabled<br />
BUG: 374933</p>
<p>Also see <a href="https://bugreports.qt.io/browse/QTBUG-58153" class="remarkup-link" target="_blank" rel="noreferrer">https://bugreports.qt.io/browse/QTBUG-58153</a></p></div></div><br /><div><strong>TEST PLAN</strong><div><p>spent a good while searching and copy pasting and all that fun stuff. no more crashing.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R236 KWidgetsAddons</div></div></div><br /><div><strong>BRANCH</strong><div><div>master</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D6624" rel="noreferrer">https://phabricator.kde.org/D6624</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/kcharselect.cpp</div></div></div><br /><div><strong>To: </strong>sitter, gladhorn<br /><strong>Cc: </strong>Frameworks<br /></div>