From bdbb9b6f614513db64fcdba2f0b62e0410df1ece Mon Sep 17 00:00:00 2001 From: Emil Sawicki Date: Tue, 15 Mar 2022 09:20:52 +0100 Subject: [PATCH] Set render preview window to be modal --- limereport/lrreportengine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/limereport/lrreportengine.cpp b/limereport/lrreportengine.cpp index 3ff5d34..6f622bc 100644 --- a/limereport/lrreportengine.cpp +++ b/limereport/lrreportengine.cpp @@ -492,7 +492,7 @@ bool ReportEnginePrivate::showPreviewWindow(ReportPages pages, PreviewHints hint Q_UNUSED(printer) if (pages.count()>0){ Q_Q(ReportEngine); - PreviewReportWindow* w = new PreviewReportWindow(q, 0, settings()); + PreviewReportWindow* w = new PreviewReportWindow(q, QApplication::activeWindow(), settings()); w->setWindowFlags(Qt::Dialog|Qt::WindowMaximizeButtonHint|Qt::WindowCloseButtonHint| Qt::WindowMinMaxButtonsHint); w->setAttribute(Qt::WA_DeleteOnClose,true); w->setWindowModality(Qt::ApplicationModal);