diff -r ba81afcb2b51 -r 4e11661e039d flagrowobj.cpp --- a/flagrowobj.cpp Thu Mar 23 12:38:54 2006 +0000 +++ b/flagrowobj.cpp Wed May 31 12:36:13 2006 +0000 @@ -161,6 +161,8 @@ void FlagRowObj::activate (const QString &foname) { + // Note: "activate" is also called during loading of a map + // Here we do not check for exclusive flags! FlagObj *fo=findFlag (foname); if (parentRow) { @@ -219,10 +221,14 @@ // deactivate all flags in keepof, but keep keepfo [sic!] if (keepfo) { - FlagObj *fo; - for (fo=flag.first();fo; fo=flag.next() ) - if (keepfo->getGroup()==fo->getGroup() && keepfo!=fo) - flag.remove(fo); + QString g=keepfo->getGroup(); + if (g!="undefined") + { + FlagObj *fo; + for (fo=flag.first();fo; fo=flag.next() ) + if (g==fo->getGroup() && keepfo!=fo) + flag.remove(fo); + } } }