Kaydet (Commit) b8315b1c authored tarafından Andrzej Hunt's avatar Andrzej Hunt

fdo#72006 Populate "Load URL" dropdown from picklist.

f7feb422 stopped any newly opened documents
from being added to the "History" list (and instead adds them to the picklist),
since the history list is not used anywhere else, and since the picklist performs
an equivalent function, it makes most sense just to use the picklist to populate
the list of URLs.

Change-Id: I5a06e7fefe3dc1fbe266f3191de4fbac03601858
Reviewed-on: https://gerrit.libreoffice.org/9104Tested-by: 's avatarAndrzej Hunt <andrzej.hunt@collabora.com>
Reviewed-by: 's avatarAndrzej Hunt <andrzej.hunt@collabora.com>
üst 3dc68085
......@@ -219,7 +219,7 @@ void SfxURLToolBoxControl_Impl::StateChanged
SvtURLBox* pURLBox = GetURLBox();
pURLBox->Clear();
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > > lList = SvtHistoryOptions().GetList(eHISTORY);
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > > lList = SvtHistoryOptions().GetList(ePICKLIST);
for (sal_Int32 i=0; i<lList.getLength(); ++i)
{
::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > lProps = lList[i];
......
......@@ -152,7 +152,7 @@ SvtMatchContext_Impl::~SvtMatchContext_Impl()
void SvtMatchContext_Impl::FillPicklist(std::vector<OUString>& rPickList)
{
// Einlesung der Historypickliste
Sequence< Sequence< PropertyValue > > seqPicklist = SvtHistoryOptions().GetList( eHISTORY );
Sequence< Sequence< PropertyValue > > seqPicklist = SvtHistoryOptions().GetList( ePICKLIST );
sal_uInt32 nCount = seqPicklist.getLength();
for( sal_uInt32 nItem=0; nItem < nCount; nItem++ )
......@@ -948,7 +948,7 @@ void SvtURLBox::UpdatePicklistForSmartProtocol_Impl()
if ( !bHistoryDisabled )
{
// read history pick list
Sequence< Sequence< PropertyValue > > seqPicklist = SvtHistoryOptions().GetList( eHISTORY );
Sequence< Sequence< PropertyValue > > seqPicklist = SvtHistoryOptions().GetList( ePICKLIST );
sal_uInt32 nCount = seqPicklist.getLength();
INetURLObject aCurObj;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment