diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2014-05-28 15:54:04 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-05-28 17:02:46 -0700 |
commit | 86d7f6ace06adf13fe5045a217c4f264356a01df (patch) | |
tree | e45777cafa6ecd5d0edde3e611541323d70f9562 /qt-ui/diveplanner.cpp | |
parent | 412317c91ff5212ea5e53fc4fd12cfdae4c04571 (diff) | |
download | subsurface-86d7f6ace06adf13fe5045a217c4f264356a01df.tar.gz |
Move code from the Planner that doesn't belongs there.
Moved the connections between DivePlannerPointsModel and
MainWindow from inside the Planner class to the MainWindow.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/diveplanner.cpp')
-rw-r--r-- | qt-ui/diveplanner.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp index 131cf300a..215898389 100644 --- a/qt-ui/diveplanner.cpp +++ b/qt-ui/diveplanner.cpp @@ -274,9 +274,6 @@ DivePlannerWidget::DivePlannerWidget(QWidget *parent, Qt::WindowFlags f) : QWidg // Creating (and canceling) the plan connect(ui.buttonBox, SIGNAL(accepted()), plannerModel, SLOT(createPlan())); connect(ui.buttonBox, SIGNAL(rejected()), plannerModel, SLOT(cancelPlan())); - connect(plannerModel, SIGNAL(planCreated()), MainWindow::instance(), SLOT(removeFakeDiveForAddAndPlan())); - connect(plannerModel, SIGNAL(planCreated()), MainWindow::instance(), SLOT(showProfile())); - connect(plannerModel, SIGNAL(planCanceled()), MainWindow::instance(), SLOT(planCanceled())); /* set defaults. */ ui.startTime->setTime(QTime(1, 0)); @@ -879,10 +876,8 @@ void DivePlannerPointsModel::createPlan() // Remove and clean the diveplan, so we don't delete // the dive by mistake. diveplan.dp = NULL; - planCreated(); setPlanMode(NOTHING); free(stagingDive); stagingDive = NULL; - // we unselected all dives earlier, so as a side effect recreating the dive list will select the new dive - MainWindow::instance()->refreshDisplay(); + planCreated(); } |