mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-09 16:41:14 +02:00
Fix bogus error dialog when append-recording with no waves...
But with at least one track of other type, such as Time
This commit is contained in:
parent
0be66296cd
commit
aee45d9cce
@ -886,7 +886,16 @@ void ControlToolBar::OnRecord(wxCommandEvent &evt)
|
||||
#ifdef EXPERIMENTAL_DA
|
||||
shifted = !shifted;
|
||||
#endif
|
||||
if(it.First() == NULL)
|
||||
bool hasWave = false;
|
||||
for (auto t = it.First(); t; t = it.Next()) {
|
||||
if (t->GetKind() == Track::Wave) {
|
||||
hasWave = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if(!hasWave)
|
||||
// Treat append-record like record, when there was no given wave track
|
||||
// to append onto.
|
||||
shifted = false;
|
||||
|
||||
double t0 = p->GetSel0();
|
||||
|
Loading…
x
Reference in New Issue
Block a user