Ensure audio track is inserted at correct position if no existing audio

parent c5ae08cd
......@@ -85,7 +85,8 @@ int TrackDialog::selectedTrackPosition() const
}
return position;
}
return -1;
bool audioMode = audio_track->isChecked() || arec_track->isChecked();
return audioMode ? 0 : -1;
}
int TrackDialog::selectedTrackId() const
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment