diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-05-14 12:20:41 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-05-14 15:03:50 +0200 |
commit | 881bb00dc39d65560e26a60b34ae05d1ac662bc0 (patch) | |
tree | f16bc8dd9eaac2ad534970cc1ddd778288bda851 /svtools | |
parent | f645481d29d09c412d34ea6cbba89135d10babee (diff) |
weld AddInstanceDialog
Change-Id: I69bcb7fb9c18922a5de03e6f2dedd915a5851712
Reviewed-on: https://gerrit.libreoffice.org/54313
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/control/inettbc.cxx | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/svtools/source/control/inettbc.cxx b/svtools/source/control/inettbc.cxx index 0ba4aaa20ba8..dfd73391ca65 100644 --- a/svtools/source/control/inettbc.cxx +++ b/svtools/source/control/inettbc.cxx @@ -2010,7 +2010,8 @@ IMPL_LINK_NOARG(URLBox, TryAutoComplete, Timer *, void) } URLBox::URLBox(weld::ComboBoxText* pWidget) - : m_xWidget(pWidget) + : bHistoryDisabled(false) + , m_xWidget(pWidget) { Init(); @@ -2044,6 +2045,9 @@ void URLBox::UpdatePicklistForSmartProtocol_Impl() { m_xWidget->clear(); + if (bHistoryDisabled) + return; + // read history pick list Sequence< Sequence< PropertyValue > > seqPicklist = SvtHistoryOptions().GetList( ePICKLIST ); sal_uInt32 nCount = seqPicklist.getLength(); @@ -2201,4 +2205,10 @@ void URLBox::SetBaseURL( const OUString& rURL ) aBaseURL = rURL; } +void URLBox::DisableHistory() +{ + bHistoryDisabled = true; + UpdatePicklistForSmartProtocol_Impl(); +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |