[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: KStandardDirs
From:       Stephan Kulow <coolo () kde ! org>
Date:       2003-06-05 18:45:39
[Download RAW message or body]

Am Thursday 05 June 2003 19:42 schrieb Amilcar do Carmo Lucas:
>
> static void fixHomeDir(QString &dir)
> {
>    if (dir[0] == '~' && dir[1] == '/')
>    {
>       dir = QDir::homeDirPath() + dir.mid(1);
>    }
>    else
>    {
>       dir = "/home/" + dir.mid(1);
>    }
> }

Well, who set KDEDIR to ~foo/kde and expects it to work?  :)
But your suggested code is even more buggy ;(

Greetings, Stephan


-- 
Pace Peace Paix Paz Frieden Pax Pokój Friður Fred Béke 和平
Hasiti Lapé Hetep Malu Mир Wolakota Santiphap Irini שלום Peoch
Shanti Vrede Baris Rój Mír Taika Rongo Sulh Py'guapy 평화
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic