From 7f878c6217754dd2b63401bf1c006476e5dc27eb Mon Sep 17 00:00:00 2001 From: Andreas Hartmetz Date: Sat, 29 Aug 2020 10:59:16 +0200 Subject: Remove "fallback session management" With the Qt6 compatibility break, it can finally be removed. Closing windows (which might quit the application with quitOnLastWindowClosed() true, the default) acted contrary to the documentation of the commitDataRequest() signal, which could have been a hint. This removes the workaround API from the fix for QTBUG-49667 and also removes the problematic feature that it worked around. Change-Id: I672be58864ef062df7fb7f2a81658b92c4feedd2 Reviewed-by: Fabian Kosmale --- src/gui/doc/snippets/code/src_gui_kernel_qguiapplication.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'src/gui/doc/snippets/code/src_gui_kernel_qguiapplication.cpp') diff --git a/src/gui/doc/snippets/code/src_gui_kernel_qguiapplication.cpp b/src/gui/doc/snippets/code/src_gui_kernel_qguiapplication.cpp index 7f901ecd8d..d26a15f783 100644 --- a/src/gui/doc/snippets/code/src_gui_kernel_qguiapplication.cpp +++ b/src/gui/doc/snippets/code/src_gui_kernel_qguiapplication.cpp @@ -80,7 +80,6 @@ int main(int argc, char *argv[]) MyMainWidget::MyMainWidget(QWidget *parent) : QWidget(parent) { - QGuiApplication::setFallbackSessionManagementEnabled(false); connect(qApp, &QGuiApplication::commitDataRequest, this, &MyMainWidget::commitData); } -- cgit v1.2.3