Enable the dive planning under a compile flag

Allow subsurface to show the dive planner in case a compile flag is given.

qmake CONFIG+=planner

Signed-off-by: Danilo Cesar Lemes de Paula <danilo.eu@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Danilo Cesar Lemes de Paula 2014-02-07 00:14:47 -02:00 committed by Dirk Hohndel
parent 772c9fb0b1
commit 31c45b8c4c
3 changed files with 10 additions and 0 deletions

View file

@ -73,6 +73,10 @@ MainWindow::MainWindow() : QMainWindow(),
ui.ListWidget->scrollTo(ui.ListWidget->model()->index(0,0), QAbstractItemView::PositionAtCenter);
ui.divePlanner->settingsChanged();
ui.divePlannerWidget->settingsChanged();
#ifndef ENABLE_PLANNER
ui.menuLog->removeAction(ui.actionDivePlanner);
#endif
}
// this gets called after we download dives from a divecomputer