D13808: Fix KMainWindow saving incorrect widget settings
Anthony Fieroni
noreply at phabricator.kde.org
Tue Jul 17 07:13:40 BST 2018
anthonyfieroni added inline comments.
INLINE COMMENTS
> maxrd2 wrote in kmainwindow_unittest.cpp:267
> Retried with all of these... none of them causes the failure, only closing the window manually cause it
>
> QApplication::postEvent(mw, new QDeferredDeleteEvent); // qpa/window manager sends this one.. with spontaneous flag tho
> QApplication::postEvent(mw, new QCloseEvent); // this one does absolutely nothing
> QTimer::singleShot(1000, [&](){ QApplication::sendEvent(mw, new QDeferredDeleteEvent); });
> mw->close();
> QTimer::singleShot(1000, [&](){ mw->close(); });
> mw->deleteLater();
mw->setAttribute(Qt::WA_DeleteOnClose);
Then post event close or deleteLater should work
REPOSITORY
R263 KXmlGui
BRANCH
fix-window-state-save
REVISION DETAIL
https://phabricator.kde.org/D13808
To: maxrd2, #kde_applications, dfaure, elvisangelaccio, broulik, cfeck
Cc: anthonyfieroni, arojas, marten, asturmlechner, wbauer, aacid, ngraham, kde-frameworks-devel, michaelh, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20180717/1b94abed/attachment.html>
More information about the Kde-frameworks-devel
mailing list