diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-10-28 12:37:05 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-10-28 12:37:05 +0100 |
commit | 624ff6633c40ab678573a7a38fa3c83c41e0af17 (patch) | |
tree | 210bb4624ea8790d4c5a8b7293636383c30b979f /fpicker | |
parent | b1271fc9baecc5098b9308fb26868bf3637a6293 (diff) |
only draw menubutton separator when two sides do something different
Change-Id: If6e3b72eacef2325f9f30770bbed32c627bc035c
Diffstat (limited to 'fpicker')
-rw-r--r-- | fpicker/source/office/RemoteFilesDialog.cxx | 4 | ||||
-rw-r--r-- | fpicker/source/office/iodlgimp.cxx | 4 |
2 files changed, 5 insertions, 3 deletions
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); } |