Changeset 2676

Show
Ignore:
Timestamp:
09/02/08 10:53:09 (3 months ago)
Author:
kris
Message:

Fixed a bug with PPPoE not being able to save properly

Location:
pcbsd/trunk/NetworkManagerAdmin
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • pcbsd/trunk/NetworkManagerAdmin/NetworkManagerAdmin.pro

    r2159 r2676  
    2222TRANSLATIONS = NetworkManagerAdmin_en.ts 
    2323 
     24QMAKE_LIBDIR = /usr/local/kde4/lib /usr/local/lib/qt4 /usr/local/lib 
  • pcbsd/trunk/NetworkManagerAdmin/netmanadmin.cpp

    r2158 r2676  
    3737    connect(lineGateway, SIGNAL(textChanged(const QString &)), this, SLOT(slotRecheckText(const QString &) ) );     
    3838    connect(lineHostname, SIGNAL(textChanged(const QString &)), this, SLOT(slotRecheckText(const QString &) ) );     
     39    connect(linePPPUsername, SIGNAL(textChanged(const QString &)), this, SLOT(slotRecheckText(const QString &) ) );     
     40    connect(linePPPPassword, SIGNAL(textChanged(const QString &)), this, SLOT(slotRecheckText(const QString &) ) );     
     41    connect(linePPPService, SIGNAL(textChanged(const QString &)), this, SLOT(slotRecheckText(const QString &) ) );     
    3942 
    4043    // Load our device names for the PPOE combo box 
     
    473476     
    474477     
    475      QFile filein( "/etc/ppp/ppp.conf" ); 
    476478     int foundProfile = 0; 
    477479     QString ProfileName = "internet"; 
     
    497499 
    498500        // Now load the ppp.conf file 
     501        QString PPPFile = "/etc/ppp/ppp.conf"; 
     502        QFile filein( PPPFile ); 
    499503        if ( filein.open( QIODevice::ReadOnly ) ) { 
    500504        QTextStream stream( &filein ); 
     
    503507            line = stream.readLine(); // line of text excluding '\n' 
    504508 
     509 
    505510            // Check if we are on a profile line 
    506             if ( line.indexOf(":") == line.length() -1  ) { 
    507                 if ( line.indexOf(ProfileName) != -1 ) { 
     511            if ( line.indexOf(":") == line.length() -1 ) { 
     512                if ( line.indexOf("default") == -1 ) { 
    508513                    // If we find the existing profile for this device, remove it 
    509514                    foundProfile = 1;