1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-05 22:28:57 +02:00

Bug 1629 - Edit Toolbar buttons work once only.

This commit is contained in:
James Crook 2017-04-08 22:26:06 +01:00
parent 03f6efb8ca
commit b3d6186cf9

View File

@ -250,9 +250,9 @@ void EditToolBar::OnButton(wxCommandEvent &event)
auto cleanup = finally( [&] {
bool bIsToggle = false;
#ifdef OPTION_SYNC_LOCK_BUTTON
bIsToggle = bIsToggle || ( id != ETBSyncLockID );
bIsToggle = bIsToggle || ( id == ETBSyncLockID );
#endif
if( bIsToggle )
if( !bIsToggle )
SetButton(false, mButtons[id]);
}
);