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
This commit is contained in:
Michael Meeks
2016-01-13 14:41:53 +00:00
parent a6d1b4b17a
commit 5077a1f664
2 changed files with 2 additions and 2 deletions

View File

@@ -1198,7 +1198,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 ) );
}

View File

@@ -177,7 +177,7 @@ void ProgressBar::SetValue( sal_uInt16 nNewPercent )
Update();
}
}
else
else if ( mnPercent != nNewPercent )
{
mnPreviousPercent = mnPercent;
mnPercent = nNewPercent;