diff --git a/src/lrreportengine.cpp b/src/lrreportengine.cpp index 64a9392..b9a9a00 100644 --- a/src/lrreportengine.cpp +++ b/src/lrreportengine.cpp @@ -291,7 +291,7 @@ void ReportEnginePrivate::previewReport() ReportPages pages = renderToPages(); dataManager()->setDesignTime(true); if (pages.count()>0){ - PreviewReportWindow* w = new PreviewReportWindow(this,QApplication::activeWindow(),settings()); + PreviewReportWindow* w = new PreviewReportWindow(this,0,settings()); w->setWindowFlags(Qt::Dialog|Qt::WindowMaximizeButtonHint|Qt::WindowCloseButtonHint); w->setAttribute(Qt::WA_DeleteOnClose,true); w->setWindowModality(Qt::ApplicationModal);