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