mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Remove leftovers from the planner.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
2359bd3c2c
commit
b88e6dc5fa
5 changed files with 15 additions and 57 deletions
|
@ -318,14 +318,16 @@ void MainWindow::on_actionDivePlanner_triggered()
|
|||
break;
|
||||
}
|
||||
}
|
||||
ui.stackedWidget->setCurrentIndex(PLANNERPROFILE);
|
||||
ui.infoPane->setCurrentIndex(PLANNERWIDGET);
|
||||
}
|
||||
|
||||
void MainWindow::showProfile()
|
||||
{
|
||||
enableDcShortcuts();
|
||||
ui.stackedWidget->setCurrentIndex(PROFILE);
|
||||
//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.infoPane->setCurrentIndex(MAINTAB);
|
||||
}
|
||||
|
||||
|
@ -1101,14 +1103,20 @@ void MainWindow::editCurrentDive()
|
|||
if (defaultDC == "manually added dive") {
|
||||
disableDcShortcuts();
|
||||
DivePlannerPointsModel::instance()->setPlanMode(DivePlannerPointsModel::ADD);
|
||||
ui.stackedWidget->setCurrentIndex(PLANNERPROFILE); // Planner.
|
||||
//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(PLANNERPROFILE); // Planner.
|
||||
ui.infoPane->setCurrentIndex(MAINTAB);
|
||||
DivePlannerPointsModel::instance()->loadFromDive(d);
|
||||
ui.InfoWidget->enableEdition(MainTab::MANUALLY_ADDED_DIVE);
|
||||
} else if (defaultDC == "planned dive") {
|
||||
disableDcShortcuts();
|
||||
DivePlannerPointsModel::instance()->setPlanMode(DivePlannerPointsModel::PLAN);
|
||||
ui.stackedWidget->setCurrentIndex(PLANNERPROFILE); // Planner.
|
||||
//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(PLANNERPROFILE); // Planner.
|
||||
ui.infoPane->setCurrentIndex(PLANNERWIDGET);
|
||||
DivePlannerPointsModel::instance()->loadFromDive(d);
|
||||
ui.InfoWidget->enableEdition(MainTab::MANUALLY_ADDED_DIVE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue