handle GUIs of missing or disabled plugins

This commit is contained in:
Robin Gareus 2015-09-01 13:28:33 +02:00
parent 0370b1988d
commit e10e9ca77f
1 changed files with 6 additions and 0 deletions

View 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 ();
}