[Libreoffice-commits] core.git: Branch 'libreoffice-5-1' - desktop/source vcl/source

Michael Meeks michael.meeks at collabora.com
Mon Jan 25 09:14:18 PST 2016


 desktop/source/deployment/gui/dp_gui_dialog2.cxx |    2 +-
 vcl/source/control/prgsbar.cxx                   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit a4dfb5a24ea16c6071dc40aa7321a5118745cb4b
Author: Michael Meeks <michael.meeks at collabora.com>
Date:   Wed Jan 13 14:41:53 2016 +0000

    tdf#95573 - stop (crazy) busy loop from blocking rendering.
    
    Attempt to blind fix extensions problem on OS/X. Some quite
    amazing code there. To avoid each busy idle from invalidating,
    avoid progress bar invalidation for the same %age being set.
    
    Change-Id: If96f8615c0ea712681e008972b3abe1c070a3227
    Reviewed-on: https://gerrit.libreoffice.org/21436
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Miklos Vajna <vmiklos at collabora.co.uk>

diff --git a/desktop/source/deployment/gui/dp_gui_dialog2.cxx b/desktop/source/deployment/gui/dp_gui_dialog2.cxx
index 5c2e7f3..38004c5 100644
--- a/desktop/source/deployment/gui/dp_gui_dialog2.cxx
+++ b/desktop/source/deployment/gui/dp_gui_dialog2.cxx
@@ -1199,7 +1199,7 @@ UpdateRequiredDialog::UpdateRequiredDialog(vcl::Window *pParent, TheExtensionMan
     m_pUpdateBtn->Enable( false );
     m_pCloseBtn->GrabFocus();
 
-    m_aIdle.SetPriority( SchedulerPriority::MEDIUM );
+    m_aIdle.SetPriority( SchedulerPriority::LOWEST );
     m_aIdle.SetIdleHdl( LINK( this, UpdateRequiredDialog, TimeOutHdl ) );
 }
 
diff --git a/vcl/source/control/prgsbar.cxx b/vcl/source/control/prgsbar.cxx
index c13c14e..9f8f303 100644
--- a/vcl/source/control/prgsbar.cxx
+++ b/vcl/source/control/prgsbar.cxx
@@ -177,7 +177,7 @@ void ProgressBar::SetValue( sal_uInt16 nNewPercent )
             Update();
         }
     }
-    else
+    else if ( mnPercent != nNewPercent )
     {
         mnPreviousPercent = mnPercent;
         mnPercent = nNewPercent;


More information about the Libreoffice-commits mailing list