diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Patchage.cpp | 18 | ||||
-rw-r--r-- | src/PatchageEvent.cpp | 2 |
2 files changed, 6 insertions, 14 deletions
diff --git a/src/Patchage.cpp b/src/Patchage.cpp index 71b4eb7..ec958a1 100644 --- a/src/Patchage.cpp +++ b/src/Patchage.cpp @@ -329,24 +329,16 @@ Patchage::idle_callback() } #endif - // Do a full refresh (ie user clicked refresh) - if (_refresh) { - _canvas->destroy(); - _jack_driver->refresh(); -#ifdef HAVE_ALSA - if (_alsa_driver) - _alsa_driver->refresh(); -#endif - _refresh = false; - } - #ifdef HAVE_LASH if (_lash_driver->is_attached()) _lash_driver->process_events(); #endif - if (_refresh) + // Do a full refresh (ie user clicked refresh) + if (_refresh) { + refresh(); _refresh = false; + } update_load(); @@ -410,7 +402,7 @@ Patchage::refresh() assert(_canvas); if (_enable_refresh) { - + _canvas->destroy(); if (_jack_driver) diff --git a/src/PatchageEvent.cpp b/src/PatchageEvent.cpp index 5b63486..3f03208 100644 --- a/src/PatchageEvent.cpp +++ b/src/PatchageEvent.cpp @@ -62,7 +62,7 @@ PatchageEvent::execute(Patchage* patchage) assert(module); module->remove_port(port); - port->hide(); + port.reset(); // No empty modules (for now) if (module->num_ports() == 0) { |