[PATCH] Rely on ENABLE_PLANNER to enable the planner

Anton Lundin glance at acc.umu.se
Sat Apr 5 13:50:03 PDT 2014


The removal of the planner menu entry was erroneously commented out.
Other parts of the code rely on ENABLE_PLANNER to know if the planner is
enabled or not so rely on it here to.

Signed-off-by: Anton Lundin <glance at acc.umu.se>
---
 qt-ui/mainwindow.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index e86f223..216f182 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -88,7 +88,7 @@ MainWindow::MainWindow() : QMainWindow(),
 
 
 #ifndef ENABLE_PLANNER
-//	ui.menuLog->removeAction(ui.actionDivePlanner);
+	ui.menuLog->removeAction(ui.actionDivePlanner);
 #endif
 #ifdef NO_MARBLE
 	ui.layoutWidget->hide();
-- 
1.9.1



More information about the subsurface mailing list