summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-02-12 16:37:08 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-02-12 16:37:57 +0100
commit24b2c5e44875585511f35438aba12647ccdc45fb (patch)
treec99cd11cea7cdeef758a2b3a8313c4ffe34ee7b6 /sfx2
parentb2878af3223c438abeecc77d9976e56db31a5b49 (diff)
Don't include filename extension in e-mail subject
...as suggested to me by a user. Change-Id: Iaad83e761884b7b43cf92ebb10cf553df1b97cd0
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/dialog/mailmodel.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/dialog/mailmodel.cxx b/sfx2/source/dialog/mailmodel.cxx
index 0efcebc9fbbb..1b51bd5f2a41 100644
--- a/sfx2/source/dialog/mailmodel.cxx
+++ b/sfx2/source/dialog/mailmodel.cxx
@@ -852,7 +852,7 @@ SfxMailModel::SendMailResult SfxMailModel::Send( const css::uno::Reference< css:
INetURLObject url(
maAttachedDocuments[0], INetURLObject::WAS_ENCODED);
OUString subject(
- url.getName(
+ url.getBase(
INetURLObject::LAST_SEGMENT, false,
INetURLObject::DECODE_WITH_CHARSET));
if (subject.isEmpty()) {