From 812242f010c605f0808f8fd3025bf2bc388339b1 Mon Sep 17 00:00:00 2001 From: bsongis Date: Fri, 25 Apr 2014 22:10:56 +0200 Subject: [PATCH] Fixes #1011 --- companion/src/mdichild.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/companion/src/mdichild.cpp b/companion/src/mdichild.cpp index cd21dd2f0..0fccbf92a 100644 --- a/companion/src/mdichild.cpp +++ b/companion/src/mdichild.cpp @@ -674,8 +674,8 @@ void MdiChild::print(int model, QString filename) } if (pd) { + pd->setAttribute(Qt::WA_DeleteOnClose, true); pd->show(); - delete pd; } }