From f6a72b69f8660ec1aaa6fb00ee9907e798835a25 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 27 Nov 2020 21:02:35 +0100 Subject: Ensure that modules always have an ID --- src/AlsaDriver.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/AlsaDriver.cpp') diff --git a/src/AlsaDriver.cpp b/src/AlsaDriver.cpp index 65a2a64..9487d87 100644 --- a/src/AlsaDriver.cpp +++ b/src/AlsaDriver.cpp @@ -16,6 +16,7 @@ #include "AlsaDriver.hpp" +#include "ClientID.hpp" #include "Patchage.hpp" #include "PatchageCanvas.hpp" #include "PatchageModule.hpp" @@ -222,7 +223,8 @@ AlsaDriver::find_or_create_module(Patchage* patchage, { PatchageModule* m = find_module(client_id, type); if (!m) { - m = new PatchageModule(patchage, client_name, type); + m = new PatchageModule( + patchage, client_name, type, ClientID::alsa(client_id)); m->load_location(); _app->canvas()->add_module(client_name, m); _modules.insert(std::make_pair(client_id, m)); -- cgit v1.2.1