Changeset 835dab4e


Ignore:
Timestamp:
07/30/13 15:27:59 (21 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2, releng/10.0.3, releng/10.1, releng/10.1.1
Children:
ca25b67, cd554b1
Parents:
df618abf
Message:

Add a check to make sure that a running boot environment cannot be removed.

Location:
src-qt4/pc-bootconfig
Files:
1 deleted
1 edited

Legend:

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

    reb2e9cc r835dab4e  
    316316    QString name = ui->tree_BE->topLevelItem(index)->text(0); 
    317317    if(ui->tree_BE->topLevelItemCount() == 1){ 
    318       QMessageBox::warning(this,tr("Only Boot Environment"), tr("You cannot remove your only boot environment!") ); 
     318      QMessageBox::warning(this,tr("Single Boot Environment"), tr("You cannot remove your only boot environment!") ); 
     319      return; 
     320    } 
     321    if(ui->tree_BE->topLevelItem(index)->text(1).toLower() == "yes"){ 
     322      QMessageBox::warning(this,tr("Running Boot Environment"), tr("You cannot remove a boot environment that you are currently running!") ); 
    319323      return; 
    320324    } 
Note: See TracChangeset for help on using the changeset viewer.