<table><tr><td style="">jpalecek created this revision.<br />jpalecek added a reviewer: hindenburg.<br />Herald added a project: Konsole.<br />Herald added a subscriber: konsole-devel.<br />jpalecek 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/D23601">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>When restoring session in Konsole fails, the fallback code should<br />
create a default view and session instead. However, the code omitted<br />
adding this view to the container, which makes</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">the window black (or grey in my case), see <a href="https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=935031" class="remarkup-link" target="_blank" rel="noreferrer">https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=935031</a></li>
<li class="remarkup-list-item">konsole crash later, when you add a new tab and close it, because code in ViewManager expects TerminalDisplays to be children of ViewSplitter, which is not the case
<br /><br />
This fix adds the view to activeController(), just like every other code that creates TerminalDisplay.</li>
</ul></div></div><br /><div><strong>TEST PLAN</strong><div><ol class="remarkup-list">
<li class="remarkup-list-item">find a session in your $HOME/.config/session/ from konsole before 19.08</li>
<li class="remarkup-list-item">run konsole -session xxxx (where xxxx are the numbers in your found session) -> there should be a konsole window with usable terminal</li>
<li class="remarkup-list-item">add a new tab with C-S-T and close it ->there should be no crash</li>
</ol></div></div><br /><div><strong>REPOSITORY</strong><div><div>R319 Konsole</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D23601">https://phabricator.kde.org/D23601</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/ViewManager.cpp</div></div></div><br /><div><strong>To: </strong>jpalecek, hindenburg<br /><strong>Cc: </strong>konsole-devel, fbampaloukas, thsurrel, ngraham, maximilianocuria, hindenburg<br /></div>