Changeset f2cdd39


Ignore:
Timestamp:
Jun 12, 2013 1:41:58 PM (10 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1
Children:
6c1dd87
Parents:
f70de07
Message:

Fix a bug not letting us pass when IPV4 address is disabled in the GUI

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/warden-gui/wizardNewJail.cpp

    r5dbb9c2 rf2cdd39  
    4444      QCoreApplication::processEvents(); 
    4545   } 
    46    // Get output of mount now 
    4746   int i = 0; 
    4847   QString tmp; 
     
    147146 
    148147         // Check if we have a good IPV4 or IPV6 address 
    149          if ( ! pcbsd::Utils::validateIPV4(lineIP->text()) && ! pcbsd::Utils::validateIPV6(lineIP->text()) ) { 
     148         if ( checkIPv4->isChecked() && ! pcbsd::Utils::validateIPV4(lineIP->text())) { 
    150149           button(QWizard::NextButton)->setEnabled(false); 
    151150           lineIP->setPalette(badPal); 
     
    153152           return false; 
    154153         } 
     154 
     155         if ( checkIPv6->isChecked() && ! pcbsd::Utils::validateIPV6(lineIP6->text()) ) { 
     156           button(QWizard::NextButton)->setEnabled(false); 
     157           lineIP6->setPalette(badPal); 
     158           labelMessage->setText(tr("Invalid IPv6 address!")); 
     159           return false; 
     160         } 
     161 
    155162 
    156163         // Got to the end, must be good! 
Note: See TracChangeset for help on using the changeset viewer.