Login | Register
My pages Projects Community openCollabNet

Discussions > dev > [PATCH]The ':////' Issue

subcommander
Discussion topic

Back to topic list

[PATCH]The ':////' Issue

Author jschmitt
Full name Jochen Schmitt
Date 2010-03-17 11:36:54 PDT
Message -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hallo,

because several users seems to have iisues to update to the
current beta release, I have created a patch which is attatched
to this mail.

Best Regards:

Jochen Scnmitt


diff -up subcommander-2.0.0b5​/subcommander/Projec​t.cpp.ux
subcommander-2.0.0b5​/subcommander/Projec​t.cpp
- --- subcommander-2.0.0b5​/subcommander/Projec​t.cpp.ux 2009-01-04
10:52:02.000000000 +0100
+++ subcommander-2.0.0b5​/subcommander/Projec​t.cpp 2010-03-17
19:17:10.706569071 +0100
@@ -594,12 +594,14 @@ void Project::Item::setSource( const sc:
 
   // make sure all wc paths use '/' and not '\' as path seperator.
 
+ QString path = QString::fromUtf8(newSrc);
+
   if( isWorkingCopy() )
- - {
- - QString path = QString::fromUtf8(newSrc);
- - path.replace( '\\', '/' );
- - newSrc = sc::String(path.utf8());
- - }
+ path = path.replace( '\\', '/' );
+
+ path = path.replace(":////", "://");
+
+ newSrc = sc::String(path.utf8());
 
   // svn delivers path without trailing "/". Make sure we also have
   // the path without "/". Otherwise a string compare on an equal path

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iJwEAQECAAYFAkuhITUA​CgkQZLAIBz9lVu+f7gQA​oWusnkyu0VlGPfeLGGUc​h+3T
a4yeufStWpza/USLZa9T​OEd1vLCplpNdokT0Sl94​Tv4V2YmGJFeAnazk4sta​DmY6
I4uv7p9zzSGxi3SssFmv​KcDp7BC5H3cEtZpzLbTs​7XzwSx8wwu4aChMGO8Hn​0ScT
erqO1eOnUie8YxNJRTg=
=qAeH
-----END PGP SIGNATURE-----

« Previous message in topic | 1 of 2 | Next message in topic »

Messages

Show all messages in topic

[PATCH]The ':////' Issue jschmitt Jochen Schmitt 2010-03-17 11:36:54 PDT
     Re: [PATCH]The ':////' Issue hauner Martin Hauner 2010-03-21 10:48:08 PDT
Messages per page: