<table><tr><td style="">rjvbb updated this revision to Diff 45782.<br />rjvbb 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/D16882">View Revision</a></tr></table><br /><div><div><p>Another fix: use the active MainWindow as the parent of the contextMenuData instance and do NOT delete it in the <tt style="background: #ebebeb; font-size: 13px;">TextDocumentPrivate</tt> dtor.</p>

<p>Also, do not assume there will ever only be a single MainWindow in a KDevelop session: the least we can do is reset <tt style="background: #ebebeb; font-size: 13px;">TextDocumentPrivate::contextMenuData</tt> when that instance is deleted.</p>

<p>This should round up any issues with the new approach; I don't see anything that cries for immediate improval. Instead it'd be nice if this could make the 5.3.1 release, being a bugfix.</p></div></div><br /><div><strong>CHANGES SINCE LAST UPDATE</strong><div><a href="https://phabricator.kde.org/D16882?vs=45761&id=45782">https://phabricator.kde.org/D16882?vs=45761&id=45782</a></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D16882">https://phabricator.kde.org/D16882</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>kdevplatform/shell/textdocument.cpp<br />
kdevplatform/shell/textdocument.h</div></div></div><br /><div><strong>To: </strong>rjvbb, KDevelop, kossebau<br /><strong>Cc: </strong>egospodinova, kossebau, kde-frameworks-devel, kdevelop-devel, glebaccon, antismap, iodelay, vbspam, geetamc, Pilzschaf, akshaydeo, surgenight, arrowd<br /></div>