D13808: Fix KMainWindow saving incorrect widget settings
Mladen Milinkovic
noreply at phabricator.kde.org
Thu Jul 5 22:51:06 BST 2018
maxrd2 added inline comments.
INLINE COMMENTS
> broulik wrote in kmainwindow_unittest.cpp:267
> `mw->deleteLater()`?
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();
REPOSITORY
R263 KXmlGui
BRANCH
fix-window-state-save
REVISION DETAIL
https://phabricator.kde.org/D13808
To: maxrd2, #kde_applications, dfaure, elvisangelaccio, broulik, cfeck
Cc: 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/20180705/a4483eb2/attachment.html>
More information about the Kde-frameworks-devel
mailing list