summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/control/templatedlglocalview.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/sfx2/source/control/templatedlglocalview.cxx b/sfx2/source/control/templatedlglocalview.cxx
index a1419ab5c8d6..0949e684c414 100644
--- a/sfx2/source/control/templatedlglocalview.cxx
+++ b/sfx2/source/control/templatedlglocalview.cxx
@@ -123,8 +123,12 @@ void TemplateDlgLocalView::ContextMenuSelectHdl(std::string_view rIdent)
return;
maDeleteTemplateHdl.Call(maSelectedItem);
- reload();
+ // this remove is probably redundant because reload would throw away
+ // the old contents anyway. Maybe there is an argument that removing it
+ // immediately means there is possibility to show it missing while the
+ // possibly slow reload is operating if a repaint could occur
ListView::remove(OUString::number(maSelectedItem->mnId));
+ reload();
}
else if (rIdent == "default")
{