diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-09-07 13:26:07 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-09-07 13:26:58 +0100 |
commit | a7d61daf03f6410bc313961bd100faa4e4d33059 (patch) | |
tree | 5ad2fdb29b62ec22d8860d66bee7fbd6a55fb4fd /sw | |
parent | 6da7cc143666a1e381f478d97ac7c1be7f3e436a (diff) |
%1 placeholder never replaced with anything
Change-Id: Icd7111ec044032fe76a19454bcf6b795229a0e56
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/dbui/mmoutputpage.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sw/source/ui/dbui/mmoutputpage.cxx b/sw/source/ui/dbui/mmoutputpage.cxx index 123942372153..35d98817a4c8 100644 --- a/sw/source/ui/dbui/mmoutputpage.cxx +++ b/sw/source/ui/dbui/mmoutputpage.cxx @@ -170,6 +170,11 @@ SwSaveWarningBox_Impl::SwSaveWarningBox_Impl(Window* pParent, const String& rFil aWarningImageIM.SetImage(WarningBox::GetStandardImage()); aFileNameED.SetText(rFileName); aFileNameED.SetModifyHdl(LINK(this, SwSaveWarningBox_Impl, ModifyHdl)); + + INetURLObject aTmp(rFileName); + aWarningFI.SetText(aWarningFI.GetText().replaceAll("%1", aTmp.getName( + INetURLObject::LAST_SEGMENT, true, INetURLObject::DECODE_WITH_CHARSET))); + ModifyHdl( &aFileNameED ); } |