aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGravatar Hanspeter Portner <dev@open-music-kontrollers.ch>2018-06-05 19:03:41 +0200
committerGravatar Hanspeter Portner <dev@open-music-kontrollers.ch>2018-06-05 19:03:41 +0200
commitef14e5e512a7ecf436f560fcb9eba5bdbf2a0e14 (patch)
tree674b578c2457220af7f930fbfc0713b739cb6817 /plugins
parent13e2c9273147bf7693b4e40f3643cddc6d19d5ba (diff)
downloadsynthpod-ef14e5e512a7ecf436f560fcb9eba5bdbf2a0e14.zip
synthpod-ef14e5e512a7ecf436f560fcb9eba5bdbf2a0e14.tar.gz
synthpod-ef14e5e512a7ecf436f560fcb9eba5bdbf2a0e14.tar.bz2
synthpod-ef14e5e512a7ecf436f560fcb9eba5bdbf2a0e14.tar.xz
app: fix deleting multiple modules concurrently.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/synthpod_common_nk.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/plugins/synthpod_common_nk.c b/plugins/synthpod_common_nk.c
index 8caef1e..a9fa77e 100644
--- a/plugins/synthpod_common_nk.c
+++ b/plugins/synthpod_common_nk.c
@@ -6345,6 +6345,17 @@ static inline void
_remove_selected_nodes(plughandle_t *handle)
{
DBG;
+ // deselect all module connectors
+ HASH_FOREACH(&handle->conns, mod_conn_itr)
+ {
+ mod_conn_t *mod_conn = *mod_conn_itr;
+
+ if(mod_conn->selected)
+ {
+ _remove_visible_ports_from_mod_conn(handle, mod_conn);
+ }
+ }
+
// deselect all modules
HASH_FOREACH(&handle->mods, mod_itr)
{
@@ -6363,17 +6374,6 @@ _remove_selected_nodes(plughandle_t *handle)
}
}
}
-
- // deselect all module connectors
- HASH_FOREACH(&handle->conns, mod_conn_itr)
- {
- mod_conn_t *mod_conn = *mod_conn_itr;
-
- if(mod_conn->selected)
- {
- _remove_visible_ports_from_mod_conn(handle, mod_conn);
- }
- }
}
static inline void