mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-12 14:11:10 +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
|
#ifdef EXPERIMENTAL_DA
|
||||||
shifted = !shifted;
|
shifted = !shifted;
|
||||||
#endif
|
#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;
|
shifted = false;
|
||||||
|
|
||||||
double t0 = p->GetSel0();
|
double t0 = p->GetSel0();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user