diff --git a/src/apps/deskbar/TeamMenuItem.cpp b/src/apps/deskbar/TeamMenuItem.cpp index f344581d1c..3a15e0b264 100644 --- a/src/apps/deskbar/TeamMenuItem.cpp +++ b/src/apps/deskbar/TeamMenuItem.cpp @@ -441,7 +441,12 @@ TTeamMenuItem::ToggleExpandState(bool resizeWindow) TWindowMenu *sub = (static_cast(Submenu())); if (sub) { // force the menu to update it's contents. - Submenu()->AttachedToWindow(); + bool locked = sub->LockLooper(); + // if locking the looper failed, the menu is just not visible + sub->AttachedToWindow(); + if (locked) + sub->UnlockLooper(); + if (sub->CountItems() > 1){ TExpandoMenuBar *parent = static_cast(Menu()); int myindex = parent->IndexOf(this) + 1;