Fixed regression with rdimport(1) that threw SQL errors when importing into an existing cart.

This commit is contained in:
Patrick Linstruth 2018-11-30 17:29:20 -08:00
parent 0cea67a579
commit bc0ec04b8a
2 changed files with 10 additions and 2 deletions

View File

@ -18091,3 +18091,6 @@
2018-11-30 Patrick Linstruth <patrick@deltecent.com>
* Added text clarifying independent rdpanel(1) panels in Ops Guide
and other minor corrections.
2018-11-30 Patrick Linstruth <patrick@deltecent.com>
* Fixed regression with rdimport(1) that threw SQL errors when
importing into an existing cart.

View File

@ -1099,8 +1099,13 @@ MainObject::Result MainObject::ImportFile(const QString &filename,
if(import_delete_cuts) {
DeleteCuts(import_cart_number);
}
if (RDCart::exists(*cartnum)) {
cart_created=false;
}
else {
cart_created=
RDCart::create(effective_group->name(),RDCart::Audio,&err_msg,*cartnum)!=0;
}
RDCart *cart=new RDCart(*cartnum);
int cutnum=
cart->addCut(import_format,import_bitrate,import_channels);