diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2018-12-06 00:56:15 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2018-12-06 13:48:55 +0100 |
commit | 1d427cd700704bc80378e250d3350b505e4413bd (patch) | |
tree | acfd94c8f9ac576859d1122a3debe6835efc5e50 /fpicker/source/win32/VistaFilePicker.cxx | |
parent | cc797cd31e99d47db5b2815a0a86c96204a65e62 (diff) |
Revert "tdf#121497 "Save As": File Format Type unchanged in Windows"
This reverts commit c444eb7934d4a3c190e1d060805d9d175c1a9127.
Change-Id: I19b969572afbd0a017b8086b390611cfc04c7386
Reviewed-on: https://gerrit.libreoffice.org/64654
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'fpicker/source/win32/VistaFilePicker.cxx')
-rw-r--r-- | fpicker/source/win32/VistaFilePicker.cxx | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/fpicker/source/win32/VistaFilePicker.cxx b/fpicker/source/win32/VistaFilePicker.cxx index 874bed2f5c5f..e1eb66a9ce83 100644 --- a/fpicker/source/win32/VistaFilePicker.cxx +++ b/fpicker/source/win32/VistaFilePicker.cxx @@ -119,14 +119,7 @@ void SAL_CALL VistaFilePicker::appendFilter(const OUString& sTitle , { RequestRef rRequest(new Request()); rRequest->setRequest (VistaFilePickerImpl::E_APPEND_FILTER); - const sal_Int32 idx = sTitle.indexOf("(."); - if (idx > 0) - { - const OUString sTitle_ = sTitle.replaceAt(idx, 2, "(*."); - rRequest->setArgument(PROP_FILTER_TITLE, sTitle_); - } - else - rRequest->setArgument(PROP_FILTER_TITLE, sTitle); + rRequest->setArgument(PROP_FILTER_TITLE, sTitle); rRequest->setArgument(PROP_FILTER_VALUE, sFilter); m_aAsyncExecute.triggerRequestThreadAware(rRequest, AsyncRequests::NON_BLOCKED); @@ -136,14 +129,7 @@ void SAL_CALL VistaFilePicker::setCurrentFilter(const OUString& sTitle) { RequestRef rRequest(new Request()); rRequest->setRequest (VistaFilePickerImpl::E_SET_CURRENT_FILTER); - const sal_Int32 idx = sTitle.indexOf("(."); - if (idx > 0) - { - const OUString sTitle_ = sTitle.replaceAt(idx, 2, "(*."); - rRequest->setArgument(PROP_FILTER_TITLE, sTitle_); - } - else - rRequest->setArgument(PROP_FILTER_TITLE, sTitle); + rRequest->setArgument(PROP_FILTER_TITLE, sTitle); m_aAsyncExecute.triggerRequestThreadAware(rRequest, AsyncRequests::NON_BLOCKED); } @@ -156,7 +142,6 @@ OUString SAL_CALL VistaFilePicker::getCurrentFilter() m_aAsyncExecute.triggerRequestThreadAware(rRequest, AsyncRequests::BLOCKED); const OUString sTitle = rRequest->getArgumentOrDefault(PROP_FILTER_TITLE, OUString()); - return sTitle; } |