summaryrefslogtreecommitdiff
path: root/sfx2/source/dialog/templdlg.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/dialog/templdlg.cxx')
-rw-r--r--sfx2/source/dialog/templdlg.cxx10
1 files changed, 2 insertions, 8 deletions
diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx
index 8951cfb71cbf..5a7041f22cbf 100644
--- a/sfx2/source/dialog/templdlg.cxx
+++ b/sfx2/source/dialog/templdlg.cxx
@@ -909,11 +909,8 @@ void SfxCommonTemplateDialog_Impl::SelectStyle(const OUString &rStr, bool bIsCal
bWaterDisabled = !IsSafeForWaterCan();
- if (!bIsCallback)
- {
- // tdf#134598 call UpdateStyleDependents to update watercan
- UpdateStyleDependents();
- }
+ // tdf#134598 call UpdateStyleDependents to update watercan
+ UpdateStyleDependents();
}
OUString SfxCommonTemplateDialog_Impl::GetSelectedEntry() const
@@ -1957,9 +1954,6 @@ IMPL_LINK(SfxCommonTemplateDialog_Impl, FmtSelectHdl, weld::TreeView&, rListBox,
if (!rListBox.get_cursor(xHdlEntry.get()))
return;
- if (rListBox.is_selected(*xHdlEntry))
- UpdateStyleDependents();
-
SelectStyle(rListBox.get_text(*xHdlEntry), true);
}