summaryrefslogtreecommitdiffstats
path: root/qt-ui/printdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/printdialog.cpp')
-rw-r--r--qt-ui/printdialog.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/qt-ui/printdialog.cpp b/qt-ui/printdialog.cpp
index 76e3a8782..8bf602c34 100644
--- a/qt-ui/printdialog.cpp
+++ b/qt-ui/printdialog.cpp
@@ -1,4 +1,5 @@
#include "printdialog.h"
+#include "mainwindow.h"
#include <QDebug>
#include <QPushButton>
@@ -7,7 +8,7 @@
PrintDialog *PrintDialog::instance()
{
- static PrintDialog *self = new PrintDialog();
+ static PrintDialog *self = new PrintDialog(mainWindow());
self->setAttribute(Qt::WA_QuitOnClose, false);
return self;
}