<table><tr><td style="">fvogt edited the summary of this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-g572lw4223xhqlw/">(Show Details)</a><br />fvogt edited the test plan for this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-gqegrpx7n2rlimi/">(Show Details)</a>
</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/D20659">View Revision</a></tr></table><br /><div><strong>CHANGES TO REVISION SUMMARY</strong><div><div style="white-space: pre-wrap; color: #74777D;"><span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">Might fix crashes similiar to bug 406426</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">Crash was reported:<br />
<br />
Thread 1 (Thread 0x7fdc95c68800 (LWP 6402)):<br />
[KCrash Handler]<br />
#6 QHashData::nextNode (node=node@entry=0x562f53ffbd10) at tools/qhash.cpp:598<br />
#7 0x00007fdc95a1fbab in QHash<QString, GlobalShortcut*>::const_iterator::operator++ (this=<synthetic pointer>) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qhash.h:395<br />
#8 KdeDGlobalAccel::Component::cleanUp (this=0x562f53ffb040) at ./src/runtime/component.cpp:163<br />
<br />
Apparently the container is modified while iterating over it. That does not work with the range-for as it does not detach, as opposed to Q_FOREACH.</span></div></div></div><br /><div><strong>CHANGES TO TEST PLAN</strong><div><div style="white-space: pre-wrap; color: #74777D;"><span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">Not tested</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">@lbeltrame saw valgrind errors before applying this</span>, <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">will ask someone to do that with valgrind</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">but those disappeared with this patch.</span></div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R268 KGlobalAccel</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D20659">https://phabricator.kde.org/D20659</a></div></div><br /><div><strong>To: </strong>fvogt, Frameworks<br /><strong>Cc: </strong>lbeltrame, kde-frameworks-devel, michaelh, ngraham, bruns<br /></div>