aacid added a comment.
In D13808#286480 <https://phabricator.kde.org/D13808#286480>, @maxrd2 wrote: > QTEST_MAIN already provides QApplication and event loop It does, but not between your NativeMainWindow mw; mw.close(); and as far as i understood the problem was with the close request comming from a loop (maybe i'm wrong) so i'm suggesting you either manually create an event loop or post the close event instead of directly calling close(). Of course ignore my comment if the close event being queued is not part of the problem/regression REPOSITORY R263 KXmlGui BRANCH fix-window-state-save REVISION DETAIL https://phabricator.kde.org/D13808 To: maxrd2, #kde_applications, dfaure, elvisangelaccio, broulik, cfeck Cc: wbauer, aacid, ngraham, kde-frameworks-devel, michaelh, bruns