mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-04 23:02:02 +01:00
don't delete selected groups if one is the default
This commit is contained in:
parent
bf15f12fe4
commit
2c63be81e8
1 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue