From: <avn...@us...> - 2008-03-21 06:09:31
|
Revision: 2966 http://urakawa.svn.sourceforge.net/urakawa/?rev=2966&view=rev Author: avneeshsingh Date: 2008-03-20 23:09:28 -0700 (Thu, 20 Mar 2008) Log Message: ----------- Fix to bugg: Play button triggeres crash when nothing is selected Modified Paths: -------------- trunk/urakawa/application/Obi/Obi/ProjectView/TransportBar.cs Modified: trunk/urakawa/application/Obi/Obi/ProjectView/TransportBar.cs =================================================================== --- trunk/urakawa/application/Obi/Obi/ProjectView/TransportBar.cs 2008-03-20 18:45:17 UTC (rev 2965) +++ trunk/urakawa/application/Obi/Obi/ProjectView/TransportBar.cs 2008-03-21 06:09:28 UTC (rev 2966) @@ -389,7 +389,7 @@ private void mPrevSectionButton_Click(object sender, EventArgs e) { PrevSection(); } private void mPrevPhraseButton_Click(object sender, EventArgs e) { PrevPhrase(); } private void mRewindButton_Click(object sender, EventArgs e) { Rewind(); } - private void mPlayButton_Click(object sender, EventArgs e) { Play(mView.Selection.Node); } + private void mPlayButton_Click(object sender, EventArgs e) { if ( mView.CanPlaySelection ) Play(mView.Selection.Node); } private void mPauseButton_Click(object sender, EventArgs e) { Pause(); } private void mRecordButton_Click(object sender, EventArgs e) { Record(); } private void mStopButton_Click(object sender, EventArgs e) { Stop(); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |