mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Fix NO_PRINTING building again
Back in 6699e3ab
("Add print button to planner") unconditional printing
code was added. This puts that same code behind NO_PRINTING macro.
Signed-off-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
9f7c79557e
commit
5904be2e06
2 changed files with 6 additions and 1 deletions
|
@ -276,6 +276,9 @@ DivePlannerWidget::DivePlannerWidget(QWidget *parent, Qt::WindowFlags f) : QWidg
|
|||
connect(ui.gflow, SIGNAL(valueChanged(int)), plannerModel, SLOT(setGFLow(int)));
|
||||
connect(ui.gflow, SIGNAL(editingFinished()), plannerModel, SLOT(emitDataChanged()));
|
||||
connect(ui.printPlan, SIGNAL(pressed()), this, SLOT(printDecoPlan()));
|
||||
#ifdef NO_PRINTING
|
||||
ui.printPlan->hide();
|
||||
#endif
|
||||
|
||||
// Creating (and canceling) the plan
|
||||
connect(ui.buttonBox, SIGNAL(accepted()), plannerModel, SLOT(createPlan()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue