|
|
@ -143,10 +143,10 @@ void
|
|
|
|
KWiFiManagerApp::init_whois_db ()
|
|
|
|
KWiFiManagerApp::init_whois_db ()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
KStandardDirs finder;
|
|
|
|
KStandardDirs finder;
|
|
|
|
TQString kdedir =
|
|
|
|
TQString tdedir =
|
|
|
|
finder.findResourceDir ("data", "kwifimanager/locations/NOWHERE.loc");
|
|
|
|
finder.findResourceDir ("data", "kwifimanager/locations/NOWHERE.loc");
|
|
|
|
kdedir += "kwifimanager/locations/";
|
|
|
|
tdedir += "kwifimanager/locations/";
|
|
|
|
TQDir *locations = new TQDir (kdedir);
|
|
|
|
TQDir *locations = new TQDir (tdedir);
|
|
|
|
if (!locations->exists ())
|
|
|
|
if (!locations->exists ())
|
|
|
|
kdDebug () <<
|
|
|
|
kdDebug () <<
|
|
|
|
"A grave error occurred while searching for files with AccessPoint information." << endl;
|
|
|
|
"A grave error occurred while searching for files with AccessPoint information." << endl;
|
|
|
@ -158,7 +158,7 @@ KWiFiManagerApp::init_whois_db ()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if ((*it) != "." && (*it) != "..")
|
|
|
|
if ((*it) != "." && (*it) != "..")
|
|
|
|
{
|
|
|
|
{
|
|
|
|
TQFile datei (kdedir + (*it));
|
|
|
|
TQFile datei (tdedir + (*it));
|
|
|
|
datei.open (IO_ReadOnly);
|
|
|
|
datei.open (IO_ReadOnly);
|
|
|
|
while (datei.readLine (content, 255) != -1)
|
|
|
|
while (datei.readLine (content, 255) != -1)
|
|
|
|
{
|
|
|
|
{
|
|
|
|