diff options
author | deva <deva> | 2008-06-20 14:01:00 +0000 |
---|---|---|
committer | deva <deva> | 2008-06-20 14:01:00 +0000 |
commit | dffc544632e381dbff7c3e1e6cfa4ee175f50f80 (patch) | |
tree | 828af7b666a10b8d0197cd91e818d38a86880ff7 /client/widgets | |
parent | 9e2a2daf56fd87e773050583df11a32e04a6a447 (diff) |
Added validation prior to adding in multilist
Diffstat (limited to 'client/widgets')
-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)); } |