summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorSzymon Kłos <eszkadev@gmail.com>2015-07-22 14:06:52 +0200
committerSzymon Kłos <eszkadev@gmail.com>2015-07-24 12:29:02 +0200
commitd2daae30e56a9fdfd945002c4f75889819065873 (patch)
treec61a504287638f61eccd200fbdb36a857b267878 /svtools
parent4577f449db7e92a98cbfb5b5addf7ebff66e7dad (diff)
Breadcrumb: clear all fields after changing root
Change-Id: I8cefc8f755234cb4b63ca3a414402469df0394e1
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/control/breadcrumb.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/svtools/source/control/breadcrumb.cxx b/svtools/source/control/breadcrumb.cxx
index 564c96808952..f1725e96ea52 100644
--- a/svtools/source/control/breadcrumb.cxx
+++ b/svtools/source/control/breadcrumb.cxx
@@ -45,6 +45,16 @@ OUString Breadcrumb::GetHdlURL()
void Breadcrumb::SetRootName( const OUString& rURL )
{
m_sRootName = rURL;
+
+ // we changed root - clear all fields
+ for( std::vector<VclPtr<FixedHyperlink>>::size_type i = 1; i < m_aLinks.size(); i++ )
+ {
+ m_aLinks[i]->SetText( "" );
+
+ m_aLinks[i]->Hide();
+ m_aSeparators[i]->Hide();
+ m_aLinks[i]->Enable( true );
+ }
}
void Breadcrumb::SetURL( const OUString& rURL )