sfx2/source/dialog/backingwindow.cxx | 8 -------- 1 file changed, 8 deletions(-)
New commits: commit 078337562dc8c6a92def7760c54960a06d6a81cf Author: Heiko Tietze <tietze.he...@gmail.com> AuthorDate: Fri May 2 09:35:22 2025 +0200 Commit: Heiko Tietze <heiko.tie...@documentfoundation.org> CommitDate: Fri May 2 12:31:50 2025 +0200 Resolves tdf#166347 - Start center recent/template button toggle Change-Id: I897c282a8c4fba2731a625637eb7bbe77473bebd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/184887 Tested-by: Jenkins Reviewed-by: Heiko Tietze <heiko.tie...@documentfoundation.org> diff --git a/sfx2/source/dialog/backingwindow.cxx b/sfx2/source/dialog/backingwindow.cxx index 337fd893d678..f11c184bc81c 100644 --- a/sfx2/source/dialog/backingwindow.cxx +++ b/sfx2/source/dialog/backingwindow.cxx @@ -611,18 +611,11 @@ IMPL_LINK_NOARG( BackingWindow, FilterHdl, weld::ComboBox&, void ) IMPL_LINK( BackingWindow, ToggleHdl, weld::Toggleable&, rButton, void ) { - bool bRecentMode; if (&rButton == mxRecentButton.get()) - bRecentMode = rButton.get_active(); - else - bRecentMode = !rButton.get_active(); - - if (bRecentMode) { mxLocalView->Hide(); mxAllRecentThumbnails->Show(); mxAllRecentThumbnails->GrabFocus(); - mxRecentButton->set_active(true); mxTemplateButton->set_active(false); mxActions->show(); } @@ -634,7 +627,6 @@ IMPL_LINK( BackingWindow, ToggleHdl, weld::Toggleable&, rButton, void ) mxLocalView->reload(); mxLocalView->GrabFocus(); mxRecentButton->set_active(false); - mxTemplateButton->set_active(true); mxActions->hide(); } applyFilter();