summaryrefslogtreecommitdiffstats
path: root/qt-ui/printoptions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/printoptions.cpp')
-rw-r--r--qt-ui/printoptions.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/qt-ui/printoptions.cpp b/qt-ui/printoptions.cpp
index cd38e3560..08be76588 100644
--- a/qt-ui/printoptions.cpp
+++ b/qt-ui/printoptions.cpp
@@ -8,15 +8,15 @@ PrintOptions::PrintOptions(QWidget *parent, struct print_options *printOpt, stru
ui.setupUi(this);
if (parent)
setParent(parent);
- if (!printOpt)
+ if (!printOpt || !templateOpt)
return;
- setup(printOpt);
templateOptions = templateOpt;
+ printOptions = printOpt;
+ setup();
}
-void PrintOptions::setup(struct print_options *printOpt)
+void PrintOptions::setup()
{
- printOptions = printOpt;
// print type radio buttons
switch (printOptions->type) {
case print_options::DIVELIST: