Changeset 13dd2f6


Ignore:
Timestamp:
08/08/13 10:05:46 (12 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2
Children:
74e286d, f6cd78a
Parents:
5297889
Message:

Fix a quick bug in removing the default BE, it should now make the first BE default.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/pc-bootconfig/mainUI.cpp

    re897460 r13dd2f6  
    396396    //Verify removal 
    397397    if( QMessageBox::Yes == QMessageBox::question(this,tr("Verify BE Removal"),tr("Are you sure you want to delete the following boot environment?")+"\n\n"+name, QMessageBox::Yes | QMessageBox::Cancel, QMessageBox::Cancel) ){ 
    398       if(index < G_defaultBE){  
    399          G_defaultBE--; //make sure we keep the same default BE 
     398      if(index <= G_defaultBE){  
     399         if(index < G_defaultBE){ G_defaultBE--; }//make sure we keep the same default BE 
     400         else{ G_defaultBE=0; } //Removing the default BE 
    400401         saveGRUBdefaults(G_themeFile, G_fontFile, G_timer, G_showMenu, G_defaultBE);   
    401          updateGRUBdefaults(); 
    402402      } 
    403403      beadmRemove(name); 
    404404      updateBEList(); 
     405      updateGRUBdefaults(); 
    405406    } 
    406407  }      
Note: See TracChangeset for help on using the changeset viewer.