Skip to content
Browse files

Fix a bug where the save buttons did not get de-activated on successf…

…ul save in pc-bootconfig.
  • Loading branch information...
1 parent 6156865 commit de1ea77fd3be2d2967c14bff728e65737706eef3 @beanpole135 beanpole135 committed Aug 7, 2013
Showing with 7 additions and 2 deletions.
  1. +7 −2 src-qt4/pc-bootconfig/mainUI.cpp
View
9 src-qt4/pc-bootconfig/mainUI.cpp
@@ -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);
}
}
@@ -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";
}
}

0 comments on commit de1ea77

Please sign in to comment.
Something went wrong with that request. Please try again.