Ignore:
Timestamp:
Aug 27, 2013 9:47:57 AM (8 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1
Children:
f74e9cd
Parents:
bfe4e62
Message:

Make sure that the user cannot try to create a copy of the currently running BE

File:
1 edited

Legend:

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

    r13dd2f6 rc3b1e67  
    341341 int index = getSelectedBE(); 
    342342  if(index != -1){ 
     343    if(ui->tree_BE->topLevelItem(index)->text(1).toLower() == "yes"){ 
     344      QMessageBox::warning(this,tr("Running Boot Environment"),tr("You cannot make a copy of the currently running boot environment!") ); 
     345      return; 
     346    } 
    343347    bool updateGRUB=false; 
    344348    if( ui->tree_BE->topLevelItemCount() == 1){updateGRUB=true;} //moving from 1 to 2 
Note: See TracChangeset for help on using the changeset viewer.