diff options
author | David Robillard <d@drobilla.net> | 2020-11-27 21:02:35 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-11-27 21:52:29 +0100 |
commit | f6a72b69f8660ec1aaa6fb00ee9907e798835a25 (patch) | |
tree | bb795dfd30c383deaa76aa792c709cf8f0218f68 /src/AlsaDriver.cpp | |
parent | 2e7a3b3bc94f8d68475883c845f31ee42cba115c (diff) | |
download | patchage-f6a72b69f8660ec1aaa6fb00ee9907e798835a25.tar.gz patchage-f6a72b69f8660ec1aaa6fb00ee9907e798835a25.tar.bz2 patchage-f6a72b69f8660ec1aaa6fb00ee9907e798835a25.zip |
Ensure that modules always have an ID
Diffstat (limited to 'src/AlsaDriver.cpp')
-rw-r--r-- | src/AlsaDriver.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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)); |