ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/s10k/Vago/packageWizard/packagepage3.cpp
(Generate patch)

Comparing s10k/Vago/packageWizard/packagepage3.cpp (file contents):
Revision 1092 by s10k, Sat Dec 30 13:43:28 2017 UTC vs.
Revision 1093 by s10k, Sat Dec 30 13:57:32 2017 UTC

# Line 32 | Line 32 | bool PackagePage3::validateField(QString
32      //Check if the numbers are correct and correctly separated
33      if(!field.isEmpty()){
34  
35 <        QStringList list =Util::substring(field,",");
35 >        QStringList list =Util::String::substring(field,",");
36  
37          for(int i=0; i<list.size(); i++){
38  
39              if(list.at(i).isEmpty()){
40 <                Util::showErrorPopUp("There are commas without numbers in their sides.");
40 >                Util::Dialogs::showError("There are commas without numbers in their sides.");
41                  return false;
42              }
43  
44 <            if(!Util::isStringInteger(list.at(i))){
45 <                Util::showErrorPopUp("Number is not numeric.");
44 >            if(!Util::Validation::isStringInteger(list.at(i))){
45 >                Util::Dialogs::showError("Number is not numeric.");
46                  return false;
47              }
48  
49              if(!isLevels){
50                  if(list.at(i).size()!=5){
51 <                    Util::showErrorPopUp("You have invalid packages numbers. Each number must have 5 digits.");
51 >                    Util::Dialogs::showError("You have invalid packages numbers. Each number must have 5 digits.");
52                      return false;
53                  }
54              }

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)