summaryrefslogtreecommitdiff
path: root/sfx2/source/control/thumbnailviewitem.cxx
diff options
context:
space:
mode:
authorCédric Bosdonnat <cedric.bosdonnat@free.fr>2013-02-11 18:09:45 +0100
committerCédric Bosdonnat <cedric.bosdonnat@free.fr>2013-02-12 08:46:02 +0100
commit98fa4be44290ceefd7f08ef167f0278743ade1c5 (patch)
treed0c801169cb5d51b9ffe9fc35fa34ac36005665c /sfx2/source/control/thumbnailviewitem.cxx
parent8eaac1d73140abf82631a60a99421d9e1b2c595d (diff)
Templates Manager: if the title can't be edited, don't update it in UI
Conflicts: sfx2/inc/sfx2/templatelocalview.hxx sfx2/source/control/templatelocalview.cxx sfx2/source/control/templateview.cxx Change-Id: Id16431fb3517c831a5e81ff72fafaa8569f99ef1
Diffstat (limited to 'sfx2/source/control/thumbnailviewitem.cxx')
-rw-r--r--sfx2/source/control/thumbnailviewitem.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/control/thumbnailviewitem.cxx b/sfx2/source/control/thumbnailviewitem.cxx
index c228babd21c5..2a83bc175774 100644
--- a/sfx2/source/control/thumbnailviewitem.cxx
+++ b/sfx2/source/control/thumbnailviewitem.cxx
@@ -187,8 +187,8 @@ void ThumbnailViewItem::updateTitleEditSize()
void ThumbnailViewItem::setTitle (const rtl::OUString& rTitle)
{
- mrParent.renameItem(this, rTitle);
- maTitle = rTitle;
+ if (mrParent.renameItem(this, rTitle))
+ maTitle = rTitle;
}
uno::Reference< accessibility::XAccessible > ThumbnailViewItem::GetAccessible( bool bIsTransientChildrenDisabled )