mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-07 05:24:46 +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
|
// Group menus
|
||||||
case R.id.list_group_delete:
|
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 );
|
showOKOnlyDialog( R.string.cannot_delete_default_group );
|
||||||
} else {
|
} else {
|
||||||
long[] groupIDs = getSelGroupIDs();
|
long[] groupIDs = getSelGroupIDs();
|
||||||
|
|
Loading…
Reference in a new issue