Skip to content
This repository has been archived by the owner on Dec 4, 2020. It is now read-only.

Commit

Permalink
Fix a bug where the save buttons did not get de-activated on successf…
Browse files Browse the repository at this point in the history
…ul save in pc-bootconfig.
  • Loading branch information
Ken Moore committed Aug 7, 2013
1 parent 6156865 commit de1ea77
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src-qt4/pc-bootconfig/mainUI.cpp
Expand Up @@ -393,6 +393,9 @@ void mainUI::on_tool_GRUBsavedefaults_clicked(){
bool ok = saveGRUBdefaults(themefile,fontfile,countdown,showcountdown);
if(!ok){
qDebug() << "Unable to save the GRUB defaults to file:" << file_GRUBdefaults+".new";
}else{
ui->tool_GRUBsavedefaults->setEnabled(false);
ui->tool_GRUBresetdefaults->setEnabled(false);
}
}

Expand All @@ -418,8 +421,10 @@ void mainUI::on_tool_GRUBsaveentries_clicked(){
//Get the current text
QStringList contents = ui->text_GRUBentries->toPlainText().split("\n");
bool ok = saveGRUBcustomentries(contents);
if(ok){ }//ui->tool_GRUBsaveentries->setEnabled(false); }
else{
if(ok){
ui->tool_GRUBsaveentries->setEnabled(false);
ui->tool_GRUBresetentries->setEnabled(false);
}else{
qDebug() << "Error saving custom grub entries to file:" << file_GRUBentries+".new";
}
}
Expand Down

0 comments on commit de1ea77

Please sign in to comment.