diff options
author | Rüdiger Timm <rt@openoffice.org> | 2004-11-03 14:53:57 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2004-11-03 14:53:57 +0000 |
commit | af171eea6271e37ea0828853671082eeb3bbe7da (patch) | |
tree | b713ea72424c423acec140347a078db6af2c2f7d /avmedia/source | |
parent | a68ef58852479a865fdd771a435285f5984e98bb (diff) |
INTEGRATION: CWS jmf3 (1.1.1.1.2); FILE MERGED
2004/10/01 12:49:32 ka 1.1.1.1.2.1: optimized state handling
Diffstat (limited to 'avmedia/source')
-rw-r--r-- | avmedia/source/framework/mediatoolbox.cxx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/avmedia/source/framework/mediatoolbox.cxx b/avmedia/source/framework/mediatoolbox.cxx index 4df26950520c..b33d094f359e 100644 --- a/avmedia/source/framework/mediatoolbox.cxx +++ b/avmedia/source/framework/mediatoolbox.cxx @@ -2,9 +2,9 @@ * * $RCSfile: mediatoolbox.cxx,v $ * - * $Revision: 1.1.1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: ka $ $Date: 2004-08-23 09:04:41 $ + * last change: $Author: rt $ $Date: 2004-11-03 15:53:57 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -152,12 +152,15 @@ void MediaToolBoxControl::StateChanged( USHORT nSID, SfxItemState eState, const if( eState == SFX_ITEM_DISABLED ) { - pCtrl->Disable(); + pCtrl->Enable( false, false ); pCtrl->SetText( String() ); + + const MediaItem aEmptyMediaItem( 0, AVMEDIA_SETMASK_ALL ); + pCtrl->setState( aEmptyMediaItem ); } else { - pCtrl->Enable(); + pCtrl->Enable( true, false ); const MediaItem* pMediaItem = PTR_CAST( MediaItem, pState ); |