diff options
Diffstat (limited to 'ksirc/KSOpenkSirc/open_ksirc.cpp')
-rw-r--r-- | ksirc/KSOpenkSirc/open_ksirc.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ksirc/KSOpenkSirc/open_ksirc.cpp b/ksirc/KSOpenkSirc/open_ksirc.cpp index b41373c5..3b96df99 100644 --- a/ksirc/KSOpenkSirc/open_ksirc.cpp +++ b/ksirc/KSOpenkSirc/open_ksirc.cpp @@ -48,7 +48,7 @@ open_ksirc::open_ksirc // changes are written to ~/.kde/share/apps/ksirc/servers.txt TQString filename = locate("appdata", "servers.txt"); - serverFileParser::readDatafile( filename ); + serverFileParser::readDatafile( filename.ascii() ); Groups.setAutoDelete(TRUE); @@ -137,8 +137,8 @@ void open_ksirc::insertGroupList() Server *serv; for ( serv=Groups.first(); serv != 0; serv=Groups.next() ) { - if (tempgroups.find(serv->group()) == -1) - tempgroups.inSort( serv->group() ); + if (tempgroups.find(serv->group().ascii()) == -1) + tempgroups.inSort( serv->group().ascii() ); } ComboB_ServerGroup->insertItem(i18n( "Recent") ); @@ -158,7 +158,7 @@ void open_ksirc::insertServerList( const char * group ) Server *serv; for ( serv=Groups.first(); serv != 0; serv=Groups.next() ) { - if ( !qstrcmp(serv->group(), group) ) { + if ( !qstrcmp(serv->group().ascii(), group) ) { newListBox->insertItem( serv->server(), 0 ); } } @@ -188,7 +188,7 @@ void open_ksirc::setServer( const TQString &serveraddress ) portlist = serv->ports(); for ( p=portlist.last(); p != 0; p=portlist.prev() ) { newListBox->insertItem( p->portnum() ); - if (strcmp(p->portnum(), "6667") == 0) + if (strcmp(p->portnum().ascii(), "6667") == 0) defaultport = TRUE; } LineE_Password->setText( serv->password() ); @@ -249,7 +249,7 @@ TQString open_ksirc::decryptPassword( const TQString &scrambled ) void open_ksirc::setGroup( const TQString &group ) { - insertServerList( group ); + insertServerList( group.ascii() ); if (ComboB_ServerName->count() > 0) { TQString blah = TQString(ComboB_ServerName->text( 0 )); setServer(blah); @@ -284,7 +284,7 @@ void open_ksirc::clickConnect() port = ComboB_ServerPort->currentText(); for ( serv=Groups.first(); serv != 0; serv=Groups.next() ) { - if (strcmp(serv->server(), server) == 0) { + if (strcmp(serv->server().ascii(), server.ascii()) == 0) { script = serv->script(); } break; |