From e10e9ca77f9e9b34b341076bcd88aea2b08ee462 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 1 Sep 2015 13:28:33 +0200 Subject: [PATCH] handle GUIs of missing or disabled plugins --- gtk2_ardour/window_manager.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gtk2_ardour/window_manager.cc b/gtk2_ardour/window_manager.cc index 01baf3e1fd..f8f755747b 100644 --- a/gtk2_ardour/window_manager.cc +++ b/gtk2_ardour/window_manager.cc @@ -97,6 +97,12 @@ Manager::show_visible() const { for (Windows::const_iterator i = _windows.begin(); i != _windows.end(); ++i) { if ((*i)->visible()) { + if (! (*i)->get (true)) { + /* the window may be a plugin GUI for a plugin which + * is disabled or longer present. + */ + continue; + } (*i)->show_all (); (*i)->present (); }