diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-05-27 15:44:47 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-05-27 15:44:47 -0700 |
commit | c88a90f379a297c7053c5479cd5631ec67c3e444 (patch) | |
tree | 3318b4ca2f5ac1e8d1407427f3d8eccca9cdbf2f /qt-ui/mainwindow.cpp | |
parent | eb59b97c2b150a123c855165fc2659004f2206f5 (diff) | |
download | subsurface-c88a90f379a297c7053c5479cd5631ec67c3e444.tar.gz |
Planner: correctly refresh the display
We were making things way too hard (and were doing things that don't need
doing, like clearing the DivePlanPointModel).
Currently we still crash after manually adding a dive or when canceling
a plan.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r-- | qt-ui/mainwindow.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index 7bf1ce6ec..50172fe47 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -301,10 +301,7 @@ void MainWindow::enableDcShortcuts() void MainWindow::showProfile() { enableDcShortcuts(); - //TODO: I BROKE THIS BY COMMENTING THE LINE BELOW - // and I'm sleepy now, so I think I should not try to fix right away. - // we don't setCurrentIndex anymore, we ->setPlanState() or ->setAddState() on the ProfileView. - //ui.stackedWidget->setCurrentIndex(PROFILE); + ui.newProfile->setProfileState(); ui.infoPane->setCurrentIndex(MAINTAB); } |