mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
412317c91f
commit
86d7f6ace0
3 changed files with 11 additions and 7 deletions
|
@ -77,7 +77,8 @@ MainWindow::MainWindow() : QMainWindow(),
|
|||
connect(ui.actionRecent3, SIGNAL(triggered(bool)), this, SLOT(recentFileTriggered(bool)));
|
||||
connect(ui.actionRecent4, SIGNAL(triggered(bool)), this, SLOT(recentFileTriggered(bool)));
|
||||
connect(information(), SIGNAL(addDiveFinished()), ui.newProfile, SLOT(setProfileState()));
|
||||
|
||||
connect(DivePlannerPointsModel::instance(), SIGNAL(planCreated()), MainWindow::instance(), SLOT(planCreated()));
|
||||
connect(DivePlannerPointsModel::instance(), SIGNAL(planCanceled()), MainWindow::instance(), SLOT(planCanceled()));
|
||||
ui.mainErrorMessage->hide();
|
||||
initialUiSetup();
|
||||
readSettings();
|
||||
|
@ -406,6 +407,13 @@ void MainWindow::planCanceled()
|
|||
refreshDisplay();
|
||||
}
|
||||
|
||||
void MainWindow::planCreated()
|
||||
{
|
||||
removeFakeDiveForAddAndPlan();
|
||||
showProfile();
|
||||
refreshDisplay();
|
||||
}
|
||||
|
||||
void MainWindow::on_actionDivePlanner_triggered()
|
||||
{
|
||||
if(!plannerStateClean())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue