sc/source/ui/view/spelldialog.cxx | 6 +++++- sd/source/ui/dlg/SpellDialogChildWindow.cxx | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-)
New commits: commit 8e60550fb69f154aecf43fc621b70d9b5d50b285 Author: Justin Luth <[email protected]> AuthorDate: Tue Sep 30 20:57:39 2025 -0400 Commit: Justin Luth <[email protected]> CommitDate: Wed Oct 1 13:20:46 2025 +0200 tdf#117020 sc sd: don't restart SpellDialog on application start In both Calc and Impress/Draw, if the application suddenly quit while the spelling dialog was open, then the next time that application started up it would also start up the spelling dialog. Apparently this was solved in Writer long ago with commit 999bb4cd6a6c67c622889b0344918a7664c86cf3 Author: RĂ¼diger Timm on Tue Oct 18 12:50:07 2005 +0000 2005/05/11 10:33:43 os 1.3.172.1: #i48417# ::GetInfo(): set bVisible to FALSE to prevent unwanted opening Change-Id: I37023d128889fb33f45c27c48fa6f10cc70d9220 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191701 Reviewed-by: Justin Luth <[email protected]> Tested-by: Jenkins diff --git a/sc/source/ui/view/spelldialog.cxx b/sc/source/ui/view/spelldialog.cxx index 0980d3449579..fb419840a6d7 100644 --- a/sc/source/ui/view/spelldialog.cxx +++ b/sc/source/ui/view/spelldialog.cxx @@ -59,7 +59,11 @@ ScSpellDialogChildWindow::~ScSpellDialogChildWindow() SfxChildWinInfo ScSpellDialogChildWindow::GetInfo() const { - return svx::SpellDialogChildWindow::GetInfo(); + // tdf#117020: visible gets written to UserData + // and a value of true means it automatically opens on startup + SfxChildWinInfo aInfo = svx::SpellDialogChildWindow::GetInfo(); + aInfo.bVisible = false; + return aInfo; } void ScSpellDialogChildWindow::InvalidateSpellDialog() diff --git a/sd/source/ui/dlg/SpellDialogChildWindow.cxx b/sd/source/ui/dlg/SpellDialogChildWindow.cxx index 1679c1de55cb..a9f3aa6e14e3 100644 --- a/sd/source/ui/dlg/SpellDialogChildWindow.cxx +++ b/sd/source/ui/dlg/SpellDialogChildWindow.cxx @@ -50,7 +50,11 @@ SpellDialogChildWindow::~SpellDialogChildWindow() SfxChildWinInfo SpellDialogChildWindow::GetInfo() const { - return svx::SpellDialogChildWindow::GetInfo(); + // tdf#117020: visible gets written to UserData + // and a value of true means it automatically opens on startup + SfxChildWinInfo aInfo = svx::SpellDialogChildWindow::GetInfo(); + aInfo.bVisible = false; + return aInfo; } void SpellDialogChildWindow::InvalidateSpellDialog()
