From: Dana Jansens Date: Sat, 10 Aug 2002 16:53:17 +0000 (+0000) Subject: when updating the client menu for windows that aren't in the client menu, just ignore... X-Git-Tag: openbox-2_0_0~57 X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=ff3d12175eca1f886fe07fafaa5642fefe30cef8;p=dana%2Fopenbox.git when updating the client menu for windows that aren't in the client menu, just ignore the request gracefully --- diff --git a/src/Basemenu.cc b/src/Basemenu.cc index 748b0a68..90d5e458 100644 --- a/src/Basemenu.cc +++ b/src/Basemenu.cc @@ -982,6 +982,6 @@ void Basemenu::reconfigure(void) { void Basemenu::changeItemLabel(unsigned int index, const string& label) { BasemenuItem *item = find(index); - assert(item); - item->newLabel(label); + if (item) + item->newLabel(label); }