diff options
author | Mathias Bauer <mba@openoffice.org> | 2002-05-29 07:04:16 +0000 |
---|---|---|
committer | Mathias Bauer <mba@openoffice.org> | 2002-05-29 07:04:16 +0000 |
commit | dc1f4abb5c5d88ef6cf52cca60bc18991e164905 (patch) | |
tree | e2cc446a3d43a59bea3c2cdb3ac05591198ff931 /sfx2/source/inet/inettbc.cxx | |
parent | 4530ef1c58279225e4c95df63ac21354310c5390 (diff) |
#96921#: use file names in URLBox if possible
Diffstat (limited to 'sfx2/source/inet/inettbc.cxx')
-rw-r--r-- | sfx2/source/inet/inettbc.cxx | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/sfx2/source/inet/inettbc.cxx b/sfx2/source/inet/inettbc.cxx index 3e59e5f1e01d..fc306f120723 100644 --- a/sfx2/source/inet/inettbc.cxx +++ b/sfx2/source/inet/inettbc.cxx @@ -2,9 +2,9 @@ * * $RCSfile: inettbc.cxx,v $ * - * $Revision: 1.21 $ + * $Revision: 1.22 $ * - * last change: $Author: mba $ $Date: 2001-11-28 11:25:14 $ + * last change: $Author: mba $ $Date: 2002-05-29 08:04:16 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -251,7 +251,12 @@ void SfxURLToolBoxControl_Impl::StateChanged String aRep( pURL->GetValue() ); INetURLObject aURL( aRep ); INetProtocol eProt = aURL.GetProtocol(); - pURLBox->SetText( aURL.GetURLNoPass() ); + if ( eProt == INET_PROT_FILE ) + { + pURLBox->SetText( aURL.PathToFileName() ); + } + else + pURLBox->SetText( aURL.GetURLNoPass() ); } } |