<table><tr><td style="">ngraham created this revision.<br />ngraham added reviewers: davidedmundson, Frameworks.<br />Herald added a project: Frameworks.<br />Herald added a subscriber: kde-frameworks-devel.<br />ngraham 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/D25106">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Right now session restoration logic only ever gets invoked when apps are started<br />
automatically after rebooting, because of the check for <tt style="background: #ebebeb; font-size: 13px;">qApp->isSessionRestored()</tt>.<br />
This limits the feature to only working for that use case, since <tt style="background: #ebebeb; font-size: 13px;">qApp->isSessionRestored()</tt><br />
is set by Qt and we can't override it in the app itself to signal that we want the session<br />
restoration behavior for other reasons. As a result, we can't use it to implement the<br />
behavior of restoring the condition of app when it's manually launched, which has been<br />
requested for several of our apps.</p>

<p>This patch removes the check for <tt style="background: #ebebeb; font-size: 13px;">qApp->isSessionRestored()</tt>, which opens the door to<br />
implementing the requested features in our apps.</p>

<p>CCBUG: 397463<br />
CCBUG: 413564</p></div></div><br /><div><strong>TEST PLAN</strong><div><p><a href="https://phabricator.kde.org/D11382" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;">D11382</a> now works</p>

<p>Normal session restoration behavior after a reboot is unchanged</p>

<p>Apps with session restoration behavior but without a user-facing option to invoke it<br />
don't restore session at inappropriate times.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R263 KXmlGui</div></div></div><br /><div><strong>BRANCH</strong><div><div>allow-restoring-session-manually (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D25106">https://phabricator.kde.org/D25106</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/kmainwindow.cpp</div></div></div><br /><div><strong>To: </strong>ngraham, davidedmundson, Frameworks<br /><strong>Cc: </strong>kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns<br /></div>