diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-11-26 21:29:37 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-11-27 12:30:03 +0100 |
commit | 3f2ac501e6593ef5095b308b887c48349e00c0a3 (patch) | |
tree | 96579a37e09b7e4d65e3031aba9ef23ccf713ab0 | |
parent | b4111e9ba3099d299cd3ee861d17eec2742cac01 (diff) |
tdf#121713 give filter a name
Change-Id: Ia1a45e7292a61efd21c4a7351af1a681b92e886e
Reviewed-on: https://gerrit.libreoffice.org/64077
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | cui/inc/strings.hrc | 3 | ||||
-rw-r--r-- | cui/source/dialogs/insdlg.cxx | 5 |
2 files changed, 4 insertions, 4 deletions
diff --git a/cui/inc/strings.hrc b/cui/inc/strings.hrc index 743c974caef4..149dfa658519 100644 --- a/cui/inc/strings.hrc +++ b/cui/inc/strings.hrc @@ -391,6 +391,9 @@ #define RID_SVXSTR_SHADOW_STYLE_TOPLEFT NC_("RID_SVXSTR_SHADOW_STYLE_TOPLEFT", "Cast Shadow to Top Left") #define RID_SVXSTR_SIGNATURELINE_SIGNED_BY NC_("RID_SVXSTR_SIGNATURELINE_SIGNED_BY", "Signed by: %1") #define RID_SVXSTR_OPENCL_RESTART NC_("RID_SVXSTR_OPENCL_RESTART", "For the OpenCL changes to take effect, %PRODUCTNAME must be restarted.") + +#define RID_SVXSTR_FILTER_ALL NC_("RID_SVXSTR_FILTER_ALL", "All files") + #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/cui/source/dialogs/insdlg.cxx b/cui/source/dialogs/insdlg.cxx index 243e21dd117d..cbf7c0e4eeba 100644 --- a/cui/source/dialogs/insdlg.cxx +++ b/cui/source/dialogs/insdlg.cxx @@ -98,10 +98,7 @@ IMPL_LINK_NOARG(SvInsertOleDlg, BrowseHdl, weld::Button&, void) // add filter try { - xFilePicker->appendFilter( - OUString(), - "*.*" - ); + xFilePicker->appendFilter(CuiResId(RID_SVXSTR_FILTER_ALL), "*.*"); } catch( const IllegalArgumentException& ) { |