colorwindow: Update recent colors list immediately

Change-Id: Ieb6277f0962f88dfa55b6af80535ec8af497433e
This commit is contained in:
Maxim Monastirsky 2014-10-28 18:01:51 +02:00
parent 2b54af3b64
commit 2c3c7529b5

View file

@ -1242,12 +1242,16 @@ IMPL_LINK(SvxColorWindow_Impl, SelectHdl, SvxColorValueSet*, pColorSet)
while in Dispatch()), accessing members will crash in this case. */
pColorSet->SetNoSelection();
if ( pColorSet != mpRecentColorSet )
{
mrPaletteManager.AddRecentColor( aColor );
if ( !IsInPopupMode() )
mrPaletteManager.ReloadRecentColorSet( *mpRecentColorSet );
}
if ( IsInPopupMode() )
EndPopupMode();
if ( pColorSet != mpRecentColorSet )
mrPaletteManager.AddRecentColor( aColor );
if ( maSelectedLink.IsSet() )
maSelectedLink.Call(&aColor);