diff options
-rw-r--r-- | client/widgets/multilist.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/client/widgets/multilist.cc b/client/widgets/multilist.cc index 99772dd..babe509 100644 --- a/client/widgets/multilist.cc +++ b/client/widgets/multilist.cc @@ -143,5 +143,10 @@ void MultiList::remove() void MultiList::add() { + QVector< Widget * >::iterator i = widgets.begin(); + while(i != widgets.end()) { + if(!(*i)->isValid()) return; + i++; + } list->addItem(format_parser(format, widgets)); } |