--===============1679892390== Content-Type: multipart/signed; boundary="nextPart6001511.R3OlMuru08"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart6001511.R3OlMuru08 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Thursday 31 July 2008, Carlo Segato wrote: > SVN commit 840247 by segato: > > fix titletext on windows > > M +4 -0 folderview.cpp > > > --- trunk/KDE/kdebase/apps/plasma/applets/folderview/folderview.cpp > #840246:840247 @@ -771,7 +771,11 @@ > if (m_url =3D=3D KUrl("desktop:/")) { > titleText =3D i18n("Desktop"); //FIXME: 4.2 make it "Desktop Fol= der; > } else if (m_url.isLocalFile() && > m_url.path().startsWith(KUrl("~").path())) { +#ifndef Q_WS_WIN > titleText =3D m_url.path().replace(KUrl("~").path(), i18n("Home"= )); > +#else > + titleText =3D m_url.path().replace(QDir::homePath(), i18n("Home"= )); > +#endif > } else { > titleText =3D m_url.pathOrUrl(); > } just to note:=20 this is exactly the kind of platform specific #ifdef'ing i do not want to s= ee=20 in plasma code. there are platform neutral ways to do these things; if you're unsure, ask f= irst=20 before putting in any platorm specific ifdef's. thanks =3D) =2D-=20 Aaron J. Seigo humru othro a kohnu se GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA EE75 D6B7 2EB1 A7F1 DB43 KDE core developer sponsored by Trolltech --nextPart6001511.R3OlMuru08 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQBIkhrN1rcusafx20MRAkEYAKCpN6UkOvKmpfNRWKQAChSiaI8wagCeIGDL ZhlTh9Ghmmnnt3PpWI79A7s= =GRf6 -----END PGP SIGNATURE----- --nextPart6001511.R3OlMuru08-- --===============1679892390== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel --===============1679892390==--