Diffstat (limited to 'noncore/settings/networksettings2/lancard/lancardedit.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/networksettings2/lancard/lancardedit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/settings/networksettings2/lancard/lancardedit.cpp b/noncore/settings/networksettings2/lancard/lancardedit.cpp index ffe9bf6..c00d7aa 100644 --- a/noncore/settings/networksettings2/lancard/lancardedit.cpp +++ b/noncore/settings/networksettings2/lancard/lancardedit.cpp @@ -93,51 +93,51 @@ void LanCardEdit::populateList( void ) { NIt.current(); ++NIt ) { if( NIt.current()->MACAddress == (*it) ) { Found = 1; break; } } CLI->setPixmap( 0, NSResources->getPixmap( (Found) ? "add" : "remove" ) ); } } // rescan system for new cards void LanCardEdit::SLOT_ScanCards( void ) { LanCardNetNode *NN = (LanCardNetNode *)NNI->nodeClass(); // add any NIC that is new and matches our interfacename System & S = NSResources->system(); QRegExp R( "eth[0-9]" ); // populate with all lancards in system for( QDictIterator<InterfaceInfo> It(S.interfaces()); It.current(); ++It ) { - fprintf( stderr, "TEST %s %s\n", + Log(( "TEST %s %s\n", It.current()->Name.latin1(), - It.current()->MACAddress.latin1() ); + It.current()->MACAddress.latin1() )); if( R.match( It.current()->Name ) >= 0 && ( It.current()->CardType == ARPHRD_ETHER #ifdef ARPHRD_IEEE1394 || It.current()->CardType == ARPHRD_IEEE1394 #endif ) ) { // old item ? QCheckListItem * CLI = (QCheckListItem *)LanCards_LV->firstChild(); while( CLI ) { if( CLI->text(0) == It.current()->MACAddress ) { break; } CLI = (QCheckListItem *)CLI->nextSibling(); } if( ! CLI ) { // new item CLI = new QCheckListItem( LanCards_LV, It.current()->MACAddress, QCheckListItem::CheckBox ); } |