handle GUIs of missing or disabled plugins
authorRobin Gareus <robin@gareus.org>
Tue, 1 Sep 2015 11:28:33 +0000 (13:28 +0200)
committerRobin Gareus <robin@gareus.org>
Tue, 1 Sep 2015 11:28:33 +0000 (13:28 +0200)
gtk2_ardour/window_manager.cc

index 01baf3e1fde9486e349c487209396cf3fb3784a5..f8f755747bcb7a410a944006c1b57481e5c90df5 100644 (file)
@@ -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 ();
                }