From dffc544632e381dbff7c3e1e6cfa4ee175f50f80 Mon Sep 17 00:00:00 2001 From: deva Date: Fri, 20 Jun 2008 14:01:00 +0000 Subject: Added validation prior to adding in multilist --- client/widgets/multilist.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'client/widgets') 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)); } -- cgit v1.2.3