don't delete selected groups if one is the default

This commit is contained in:
Eric House 2013-10-23 06:46:33 -07:00
parent bf15f12fe4
commit 2c63be81e8

View file

@ -800,7 +800,8 @@ public class GamesList extends XWExpandableListActivity
// Group menus
case R.id.list_group_delete:
if ( groupID == XWPrefs.getDefaultNewGameGroup( this ) ) {
if ( m_selGroupIDs
.contains( XWPrefs.getDefaultNewGameGroup( this ) ) ) {
showOKOnlyDialog( R.string.cannot_delete_default_group );
} else {
long[] groupIDs = getSelGroupIDs();