Changeset 5789


Ignore:
Timestamp:
03/11/14 03:45:02 (6 years ago)
Author:
avneesh-singh
Message:

current playlist is set to master playlist when playback finishes or it is stopped by user

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Obi/Obi/ProjectView/TransportBar.cs

    r5787 r5789  
    780780            { 
    781781                if (mCurrentPlaylist != null && mCurrentPlaylist is PreviewPlaylist) 
     782                { 
    782783                    mView.UpdateCursorPosition(mAfterPreviewRestoreTime); 
     784                } 
    783785                else 
    784                     mView.SetPlaybackPhraseAndTime(null, 0.0);  
     786                { 
     787                    mView.SetPlaybackPhraseAndTime(null, 0.0); 
     788                    if (CurrentState == State.Stopped)//@masternewbehaviour 
     789                        { 
     790                        mCurrentPlaylist = mMasterPlaylist; 
     791                    //System.Media.SystemSounds.Asterisk.Play(); 
     792                    } 
     793                } 
     794 
    785795            } 
    786796        } 
     
    16281638                mCurrentPlaylist.Stop (); 
    16291639                mView.SetPlaybackPhraseAndTime ( null, 0.0 ); 
     1640                if(!(mCurrentPlaylist is PreviewPlaylist))  mCurrentPlaylist = mMasterPlaylist; //@masternewbehaviour 
    16301641                SelectionChangedPlaybackEnabled = PlaybackOnSelectionStatus; 
    16311642                } 
Note: See TracChangeset for help on using the changeset viewer.