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

Comparing s10k/Vago/bgImageWizard/bgimagepage3.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 51 | Line 51 | void BGImagePage3::on_cbCreateTXMB_toggl
51  
52   void BGImagePage3::on_leLevelId_textChanged(const QString &arg1)
53   {
54 <    if(!arg1.isEmpty() && !Util::isStringInteger(arg1)){
55 <        Util::showErrorPopUp("Level id must be a number.");
54 >    if(!arg1.isEmpty() && !Util::Validation::isStringInteger(arg1)){
55 >        Util::Dialogs::showError("Level id must be a number.");
56          ui->leLevelId->clear();
57          return;
58      }
# Line 135 | Line 135 | bool BGImagePage3::validatePage(){
135      QStringList namesList;
136  
137      if(ui->leImageName->text().trimmed().isEmpty()){
138 <        Util::showErrorPopUp("You need to input a name to the image!");
138 >        Util::Dialogs::showError("You need to input a name to the image!");
139          return false;
140      }
141  
142      if(ui->cbCreateTXMB->isChecked() && ui->leTXMBName->text().trimmed().isEmpty()){
143 <        Util::showErrorPopUp("You need to input a name to the TXMB file!");
143 >        Util::Dialogs::showError("You need to input a name to the TXMB file!");
144          return false;
145      }
146  

Diff Legend

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