summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authordeva <deva>2008-06-20 14:01:00 +0000
committerdeva <deva>2008-06-20 14:01:00 +0000
commitdffc544632e381dbff7c3e1e6cfa4ee175f50f80 (patch)
tree828af7b666a10b8d0197cd91e818d38a86880ff7 /client
parent9e2a2daf56fd87e773050583df11a32e04a6a447 (diff)
Added validation prior to adding in multilist
Diffstat (limited to 'client')
-rw-r--r--client/widgets/multilist.cc5
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));
}