|
|
|
@ -257,8 +257,8 @@ TQString WifiConfig::autoDetectInterface()
|
|
|
|
|
|
|
|
|
|
if ( list.empty() )
|
|
|
|
|
{
|
|
|
|
|
KMessageBox::sorry( 0,
|
|
|
|
|
i18n( "Unable to autodetect wireless interface." ) );
|
|
|
|
|
// KMessageBox::sorry( 0,
|
|
|
|
|
// i18n( "Unable to autodetect wireless interface." ) );
|
|
|
|
|
return m_detectedInterface;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -270,15 +270,14 @@ TQString WifiConfig::autoDetectInterface()
|
|
|
|
|
test << *it;
|
|
|
|
|
connect( &test, TQT_SIGNAL( readReady( KProcIO * ) ),
|
|
|
|
|
this, TQT_SLOT( slotTestInterface( KProcIO * ) ) );
|
|
|
|
|
printf("[kcontrol wificonfig] Checking interface for wireless extensions...");
|
|
|
|
|
test.start ( KProcess::Block );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ( m_detectedInterface.isEmpty() )
|
|
|
|
|
{
|
|
|
|
|
KMessageBox::sorry( 0,
|
|
|
|
|
i18n( "Unable to autodetect wireless interface." ) );
|
|
|
|
|
// KMessageBox::sorry( 0,
|
|
|
|
|
// i18n( "Unable to autodetect wireless interface." ) );
|
|
|
|
|
return m_detectedInterface;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -293,6 +292,7 @@ void WifiConfig::slotTestInterface( KProcIO *proc )
|
|
|
|
|
{
|
|
|
|
|
output.truncate( output.find ( " " ) );
|
|
|
|
|
m_detectedInterface = output.stripWhiteSpace();
|
|
|
|
|
printf("[kcontrol wificonfig] Wireless extensions not available on specified interface\n\r");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|