diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2014-05-25 14:16:43 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-05-26 13:17:32 -0700 |
commit | feff22c2228d56cd75594e1a20d9a2181f9f9a6b (patch) | |
tree | 97bba5359a9f94ac37ef61d1aed9095ca0411e20 /qt-ui/mainwindow.cpp | |
parent | d1366257f081fc28939bd6abe9b67b1dba3fb07a (diff) | |
download | subsurface-feff22c2228d56cd75594e1a20d9a2181f9f9a6b.tar.gz |
Planner: Re-enable using the new profile.
This correctly enables the planner on the new profile,
but it doesn't triggers the correct paint on the canvas.
[Dirk Hohndel: remove other remnants of the disabled planner as well]
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r-- | qt-ui/mainwindow.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index 19a16a886..2bfeca64e 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -87,9 +87,6 @@ MainWindow::MainWindow() : QMainWindow(), ui.ListWidget->scrollTo(ui.ListWidget->model()->index(0, 0), QAbstractItemView::PositionAtCenter); ui.divePlannerWidget->settingsChanged(); -#ifndef ENABLE_PLANNER - ui.menuLog->removeAction(ui.actionDivePlanner); -#endif #ifdef NO_MARBLE ui.layoutWidget->hide(); ui.menuView->removeAction(ui.actionViewGlobe); @@ -318,6 +315,7 @@ void MainWindow::on_actionDivePlanner_triggered() break; } } + ui.newProfile->setPlanState(); ui.infoPane->setCurrentIndex(PLANNERWIDGET); } |