summaryrefslogtreecommitdiffstats
path: root/src/Patchage.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-06-04 19:22:12 -0400
committerDavid Robillard <d@drobilla.net>2021-06-04 19:22:12 -0400
commit6d53e23c76dc9093fea8958d0ae2328f9f5bcedd (patch)
treeddb65f0dd2659d554c1571dcc651b9a3b5169163 /src/Patchage.cpp
parent8713b6c52bb4fabda5ff9e9a39d90cef964801a6 (diff)
downloadpatchage-6d53e23c76dc9093fea8958d0ae2328f9f5bcedd.tar.gz
patchage-6d53e23c76dc9093fea8958d0ae2328f9f5bcedd.tar.bz2
patchage-6d53e23c76dc9093fea8958d0ae2328f9f5bcedd.zip
Fix initialisation order
Diffstat (limited to 'src/Patchage.cpp')
-rw-r--r--src/Patchage.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Patchage.cpp b/src/Patchage.cpp
index 5adb524..2636066 100644
--- a/src/Patchage.cpp
+++ b/src/Patchage.cpp
@@ -167,7 +167,6 @@ port_order(const GanvPort* a, const GanvPort* b, void*)
Patchage::Patchage(Options options)
: _xml(UIFile::open("patchage"))
- , _conf([this](const Setting& setting) { on_conf_change(setting); })
, INIT_WIDGET(_about_win)
, INIT_WIDGET(_main_scrolledwin)
, INIT_WIDGET(_main_win)
@@ -203,10 +202,11 @@ Patchage::Patchage(Options options)
, INIT_WIDGET(_main_paned)
, INIT_WIDGET(_log_scrolledwindow)
, INIT_WIDGET(_status_text)
- , _legend(nullptr)
+ , _conf([this](const Setting& setting) { on_conf_change(setting); })
, _log(_status_text)
- , _drivers(_log, [this](const Event& event) { on_driver_event(event); })
, _canvas(new Canvas{_log, _action_sink, 1600 * 2, 1200 * 2})
+ , _legend(nullptr)
+ , _drivers(_log, [this](const Event& event) { on_driver_event(event); })
, _reactor(_conf, _drivers, *_canvas, _log)
, _action_sink([this](const Action& action) { _reactor(action); })
, _options{options}