~ubuntu-branches/ubuntu/hardy/kdeadmin/hardy-backports

« back to all changes in this revision

Viewing changes to knetworkconf/knetworkconf/kadddnsserverdlg.ui.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2006-07-25 10:12:17 UTC
  • mfrom: (1.2.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20060725101217-96zqqeyi89kl8hxb
Tags: 4:3.5.4-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
 
31
31
void KAddDNSServerDlg::validateAddressSlot()
32
32
{
33
 
  if (addingAlias && kleNewServer->text() !="")
34
 
  {
35
 
     _modified2 = true; 
36
 
     close();  
37
 
  }
38
 
  else
39
 
  {
40
 
    KMessageBox::error(this,i18n("You have to type an alias first."),i18n("Invalid Text"));
41
 
  }  
42
33
  if (!addingAlias)
43
34
  {
44
35
    if (KAddressValidator::isValidIPAddress(kleNewServer->text()))
51
42
      KMessageBox::error(this,i18n("The format of the specified IP address is not valid."),i18n("Invalid IP Address"));
52
43
    }  
53
44
  }
 
45
  else 
 
46
  {
 
47
    if (kleNewServer->text() !="")
 
48
    {
 
49
       _modified2 = true; 
 
50
       close();  
 
51
    }
 
52
    else
 
53
    {
 
54
       KMessageBox::error(this,i18n("You have to type an alias first."),i18n("Invalid Text"));
 
55
    }
 
56
  }  
54
57
}
55
58
 
56
59