[Libreoffice-commits] core.git: Branch 'libreoffice-6-4' - vcl/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Wed Apr 8 09:25:36 UTC 2020


 vcl/source/app/salvtables.cxx |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit 7eb78233b46652f4317aef34a1bac4d084b00e2d
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Tue Apr 7 11:22:52 2020 +0100
Commit:     Michael Stahl <michael.stahl at cib.de>
CommitDate: Wed Apr 8 11:25:05 2020 +0200

    Resolves: tdf#131715 don't keep trying the same page if we're already on it
    
    return of false means we didn't change page for some reason, the idea is
    that it might be blocked to go to another page, in which case sync with
    what page we ended up on, but don't bother with that if the dest page
    would be the same as the current page
    
    Change-Id: I280128240601413fb6d027d001b2ecc9a4efa76f
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91718
    Tested-by: Jenkins
    Reviewed-by: Michael Stahl <michael.stahl at cib.de>

diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx
index 72db47b4e4f7..9bfeb9997041 100644
--- a/vcl/source/app/salvtables.cxx
+++ b/vcl/source/app/salvtables.cxx
@@ -1933,8 +1933,9 @@ IMPL_LINK_NOARG(SalInstanceAssistant, OnRoadmapItemSelected, LinkParamNone*, voi
 {
     if (notify_events_disabled())
         return;
-    int nPageIndex(find_id(m_xWizard->GetCurrentRoadmapItemID()));
-    if (!signal_jump_page(get_page_ident(nPageIndex)))
+    auto nCurItemId = m_xWizard->GetCurrentRoadmapItemID();
+    int nPageIndex(find_id(nCurItemId));
+    if (!signal_jump_page(get_page_ident(nPageIndex)) && nCurItemId != m_xWizard->GetCurLevel())
         m_xWizard->SelectRoadmapItemByID(m_xWizard->GetCurLevel());
 }
 


More information about the Libreoffice-commits mailing list