[Libreoffice-commits] core.git: Branch 'feature/gsoc15-open-remote-files-dialog' - svtools/source
Szymon Kłos
eszkadev at gmail.com
Wed Jul 29 02:12:39 PDT 2015
svtools/source/control/breadcrumb.cxx | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
New commits:
commit 286cc57c9a31695b51845ca7932d795731619cb9
Author: Szymon Kłos <eszkadev at gmail.com>
Date: Wed Jul 29 11:09:44 2015 +0200
path must contain user name
Change-Id: Ic8c98e724645d49fd9c6da796f9e060aa784246f
diff --git a/svtools/source/control/breadcrumb.cxx b/svtools/source/control/breadcrumb.cxx
index 5ae725d..53e1780 100644
--- a/svtools/source/control/breadcrumb.cxx
+++ b/svtools/source/control/breadcrumb.cxx
@@ -74,8 +74,12 @@ void Breadcrumb::SetURL( const OUString& rURL )
INetURLObject aURL( rURL );
aURL.setFinalSlash();
+ OUString sUser = aURL.GetUser( INetURLObject::NO_DECODE );
OUString sPath = aURL.GetURLPath(INetURLObject::DECODE_WITH_CHARSET);
- OUString sRootPath = INetURLObject::GetScheme( aURL.GetProtocol() ) + aURL.GetHost();
+ OUString sRootPath = INetURLObject::GetScheme( aURL.GetProtocol() )
+ + sUser
+ + ( sUser.isEmpty() ? OUString() : "@" )
+ + aURL.GetHost();
int nSegments = aURL.getSegmentCount();
unsigned int nPos = 0;
More information about the Libreoffice-commits
mailing list