From 2492b62ad4dc2d6e7bdb7b8735b22c4d512d1d28 Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Thu, 2 Jan 2020 14:39:29 +0100 Subject: [PATCH] desktop-widgets: set_verbatim_plan should go through plannerShared. Adjust connect() to use plannerShared, avoiding parameter convert problem. Signed-off-by: Jan Iversen --- desktop-widgets/diveplanner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop-widgets/diveplanner.cpp b/desktop-widgets/diveplanner.cpp index 73beae89f..702d5b2e3 100644 --- a/desktop-widgets/diveplanner.cpp +++ b/desktop-widgets/diveplanner.cpp @@ -464,7 +464,7 @@ PlannerSettingsWidget::PlannerSettingsWidget(QWidget *parent, Qt::WindowFlags f) connect(ui.lastStop, SIGNAL(toggled(bool)), plannerShared::instance(), SLOT(set_last_stop(bool))); connect(ui.lastStop, SIGNAL(toggled(bool)), this, SLOT(disableBackgasBreaks(bool))); - connect(ui.verbatim_plan, SIGNAL(toggled(bool)), plannerModel, SLOT(set_verbatim_plan(bool))); + connect(ui.verbatim_plan, SIGNAL(toggled(bool)), plannerShared::instance(), SLOT(set_verbatim_plan(bool))); connect(ui.display_duration, SIGNAL(toggled(bool)), plannerShared::instance(), SLOT(set_display_duration(bool))); connect(ui.display_runtime, SIGNAL(toggled(bool)), plannerShared::instance(), SLOT(set_display_runtime(bool))); connect(ui.display_transitions, SIGNAL(toggled(bool)), plannerShared::instance(), SLOT(set_display_transitions(bool)));