Changeset eb30981


Ignore:
Timestamp:
08/25/14 06:32:34 (4 weeks ago)
Author:
Ken Moore <ken@…>
Branches:
master, releng/10.0.3
Children:
18d1745
Parents:
75ec106
Message:

Allow the "-" and "_" characters in boot environment names.

File:
1 edited

Legend:

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

    rb8326a9 reb30981  
    7373  //Check for invalid name characters (only letters/numbers) 
    7474  bool ok = true; 
     75  QStringList validChars; validChars << "-" << "_"; 
    7576  for(int i=0; i<name.length(); i++){ 
    76     if( !name.at(i).isLetter() && !name.at(i).isDigit() ){ ok = false; break; } 
     77    if( !name.at(i).isLetter() && !name.at(i).isDigit()  && !validChars.contains(name.at(i)) ){ ok = false; break; } 
    7778  } 
    7879  if(!ok){ 
Note: See TracChangeset for help on using the changeset viewer.