1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-18 09:00:07 +02:00

minor cleanup in AudacityProject::OnPlayStopSelect

This commit is contained in:
v.audacity 2010-08-29 22:52:29 +00:00
parent 2df6400213
commit 369ebe40a4

View File

@ -1862,12 +1862,11 @@ void AudacityProject::OnPlayStopSelect()
if (gAudioIO->IsStreamActive(GetAudioIOToken())) {
toolbar->SetPlay(false); //Pops
toolbar->SetStop(true); //Pushes stop down
// toolbar->StopPlaying();
mViewInfo.sel0 = gAudioIO->GetStreamTime();
if( mViewInfo.sel1 < mViewInfo.sel0 ) {
mViewInfo.sel1 = mViewInfo.sel0;
}
GetControlToolBar()->OnStop(evt);
toolbar->OnStop(evt);
ModifyState();
}
else if (!gAudioIO->IsBusy()) {