mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
eb59b97c2b
commit
c88a90f379
2 changed files with 3 additions and 15 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue