From 624ff6633c40ab678573a7a38fa3c83c41e0af17 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 28 Oct 2016 12:37:05 +0100 Subject: only draw menubutton separator when two sides do something different Change-Id: If6e3b72eacef2325f9f30770bbed32c627bc035c --- fpicker/source/office/RemoteFilesDialog.cxx | 4 +++- fpicker/source/office/iodlgimp.cxx | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'fpicker') diff --git a/fpicker/source/office/RemoteFilesDialog.cxx b/fpicker/source/office/RemoteFilesDialog.cxx index ef5ca8c3c49d..0453bfc5e8aa 100644 --- a/fpicker/source/office/RemoteFilesDialog.cxx +++ b/fpicker/source/office/RemoteFilesDialog.cxx @@ -279,7 +279,9 @@ RemoteFilesDialog::RemoteFilesDialog( vcl::Window* pParent, PickerFlags nBits ) m_pName_ed->SetGetFocusHdl( LINK( this, RemoteFilesDialog, FileNameGetFocusHdl ) ); m_pName_ed->SetModifyHdl( LINK( this, RemoteFilesDialog, FileNameModifyHdl ) ); - m_pAddService_btn->SetDelayMenu( true ); + m_pAddService_btn->SetDelayMenu(true); + m_pAddService_btn->SetDropDown(PushButtonDropdownStyle::SplitMenuButton); + m_pAddMenu = m_pAddService_btn->GetPopupMenu(); m_pAddService_btn->SetClickHdl( LINK( this, RemoteFilesDialog, AddServiceHdl ) ); m_pAddService_btn->SetSelectHdl( LINK( this, RemoteFilesDialog, EditServiceMenuHdl ) ); diff --git a/fpicker/source/office/iodlgimp.cxx b/fpicker/source/office/iodlgimp.cxx index 0f3623fd22d2..43539fdc5197 100644 --- a/fpicker/source/office/iodlgimp.cxx +++ b/fpicker/source/office/iodlgimp.cxx @@ -95,8 +95,8 @@ SvtFileDialogURLSelector::SvtFileDialogURLSelector( vcl::Window* _pParent, SvtFi { SetStyle( GetStyle() | WB_NOPOINTERFOCUS | WB_RECTSTYLE | WB_SMALLSTYLE ); SetModeImage( _pDlg->GetButtonImage( _nButtonId ) ); - SetDelayMenu( true ); - SetDropDown( PushButtonDropdownStyle::Toolbox ); + SetDelayMenu(true); + SetDropDown(PushButtonDropdownStyle::Toolbox); } -- cgit