mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Re-enable possibility to edit manually added dive.
This one-liner re-adds the possibility to edit manually added dives. Tested because I didn't belived that it was going to be so easy, but it seems that it was. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
3f1efecdde
commit
3de498b466
1 changed files with 1 additions and 4 deletions
|
@ -1255,10 +1255,7 @@ void MainWindow::editCurrentDive()
|
||||||
if (defaultDC == "manually added dive") {
|
if (defaultDC == "manually added dive") {
|
||||||
disableDcShortcuts();
|
disableDcShortcuts();
|
||||||
DivePlannerPointsModel::instance()->setPlanMode(DivePlannerPointsModel::ADD);
|
DivePlannerPointsModel::instance()->setPlanMode(DivePlannerPointsModel::ADD);
|
||||||
//TODO: I BROKE THIS BY COMMENTING THE LINE BELOW
|
ui.newProfile->setAddState();
|
||||||
// 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);
|
ui.infoPane->setCurrentIndex(MAINTAB);
|
||||||
DivePlannerPointsModel::instance()->loadFromDive(d);
|
DivePlannerPointsModel::instance()->loadFromDive(d);
|
||||||
ui.InfoWidget->enableEdition(MainTab::MANUALLY_ADDED_DIVE);
|
ui.InfoWidget->enableEdition(MainTab::MANUALLY_ADDED_DIVE);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue