Changeset 2676
- Timestamp:
- 09/02/08 10:53:09 (3 months ago)
- Location:
- pcbsd/trunk/NetworkManagerAdmin
- Files:
-
- 2 modified
-
NetworkManagerAdmin.pro (modified) (1 diff)
-
netmanadmin.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pcbsd/trunk/NetworkManagerAdmin/NetworkManagerAdmin.pro
r2159 r2676 22 22 TRANSLATIONS = NetworkManagerAdmin_en.ts 23 23 24 QMAKE_LIBDIR = /usr/local/kde4/lib /usr/local/lib/qt4 /usr/local/lib -
pcbsd/trunk/NetworkManagerAdmin/netmanadmin.cpp
r2158 r2676 37 37 connect(lineGateway, SIGNAL(textChanged(const QString &)), this, SLOT(slotRecheckText(const QString &) ) ); 38 38 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 &) ) ); 39 42 40 43 // Load our device names for the PPOE combo box … … 473 476 474 477 475 QFile filein( "/etc/ppp/ppp.conf" );476 478 int foundProfile = 0; 477 479 QString ProfileName = "internet"; … … 497 499 498 500 // Now load the ppp.conf file 501 QString PPPFile = "/etc/ppp/ppp.conf"; 502 QFile filein( PPPFile ); 499 503 if ( filein.open( QIODevice::ReadOnly ) ) { 500 504 QTextStream stream( &filein ); … … 503 507 line = stream.readLine(); // line of text excluding '\n' 504 508 509 505 510 // 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 ) { 508 513 // If we find the existing profile for this device, remove it 509 514 foundProfile = 1;
