mirror of
https://github.com/fralx/LimeReport.git
synced 2024-12-24 00:33:02 +03:00
fix #15 Падение превью при удалении активного окна приложения
This commit is contained in:
parent
d8fb71395c
commit
dc4075a5b2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user