[atlantik-cvs] CVS: kdeaddons/atlantikdesigner/designer group.cpp,1.9,1.10

[email protected]
Newsgroups gmane.comp.kde.devel.atlantik
Message-ID <[email protected]>
Update of /home/kde/kdeaddons/atlantikdesigner/designer
In directory office:/tmp/cvs-serv3845

Modified Files:
	group.cpp 
Log Message:
fix bug 53221

Index: group.cpp
===================================================================
RCS file: /home/kde/kdeaddons/atlantikdesigner/designer/group.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- group.cpp	17 May 2003 11:00:29 -0000	1.9
+++ group.cpp	23 Jun 2003 04:21:27 -0000	1.10
@@ -144,7 +144,13 @@
 
 void GroupEditor::updateSettings(QListBoxItem *item)
 {
-	for (ConfigEstateGroupList::Iterator it =  mylist.begin(); it != mylist.end(); ++it)
+	if (!mylist.size())
+		return;
+
+	if (!item)
+		return;
+
+	for (ConfigEstateGroupList::Iterator it =  mylist.begin(); it != mylist.end() ; ++it)
 	{
 		if ((*it).name() == item->text())
 		{
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.