Another attempt to fix broken wifi kcontrol module...

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1178443 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 14 years ago
parent 710f9d6272
commit 570d2a57fc

@ -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");
}
}

Loading…
Cancel
Save