From 9b3fc73ba6d6c3b25e33b400ce0baa7226d2e32e Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 21 Aug 2016 17:39:49 +0200 Subject: gui/mapping-window: now simplify construction The spline's bundle's already initialized in mappings.hpp. With simplified spline_widget::set_config it's no longer a problem. --- gui/mapping-window.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'gui/mapping-window.cpp') diff --git a/gui/mapping-window.cpp b/gui/mapping-window.cpp index 47e12c31..e66603c7 100644 --- a/gui/mapping-window.cpp +++ b/gui/mapping-window.cpp @@ -59,10 +59,9 @@ void MapWidget::reload() Map& axis = m(qfcs[i].axis); spline& conf = altp ? axis.spline_alt : axis.spline_main; - const QString& name = altp ? axis.name2 : axis.name1; - bundle b = make_bundle(name); - conf.set_bundle(b); - qfcs[i].qfc->setConfig(&conf, b); + //const QString& name = altp ? axis.name2 : axis.name1; + //conf.set_bundle(make_bundle(name)); + qfcs[i].qfc->setConfig(&conf); if (altp) { -- cgit v1.2.3