diff --git a/DONATIONS.txt b/DONATIONS.txt index 34f1fc919..37de29d78 100644 --- a/DONATIONS.txt +++ b/DONATIONS.txt @@ -380,4 +380,4 @@ Thos. O'Meara Photography Adam Chevalier Mike Mulligan Gordon Stahl - +Serge Michaux 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; } }