Permalink
Browse files

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

…running BE
  • Loading branch information...
1 parent bfe4e62 commit c3b1e674e65c14c3180eb4502fac9c91fc85c3d2 Ken Moore committed Aug 27, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 src-qt4/pc-bootconfig/mainUI.cpp
@@ -340,6 +340,10 @@ void mainUI::on_tool_BEactivate_clicked(){
void mainUI::on_tool_BEcp_clicked(){
int index = getSelectedBE();
if(index != -1){
+ if(ui->tree_BE->topLevelItem(index)->text(1).toLower() == "yes"){
+ QMessageBox::warning(this,tr("Running Boot Environment"),tr("You cannot make a copy of the currently running boot environment!") );
+ return;
+ }
bool updateGRUB=false;
if( ui->tree_BE->topLevelItemCount() == 1){updateGRUB=true;} //moving from 1 to 2
QString name = ui->tree_BE->topLevelItem(index)->text(0);

0 comments on commit c3b1e67

Please sign in to comment.