mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
772c9fb0b1
commit
31c45b8c4c
3 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue