mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-10 16:43:35 +02:00
Fixed regression with rdimport(1) that threw SQL errors when importing into an existing cart.
This commit is contained in:
@@ -1099,8 +1099,13 @@ MainObject::Result MainObject::ImportFile(const QString &filename,
|
||||
if(import_delete_cuts) {
|
||||
DeleteCuts(import_cart_number);
|
||||
}
|
||||
cart_created=
|
||||
RDCart::create(effective_group->name(),RDCart::Audio,&err_msg,*cartnum)!=0;
|
||||
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);
|
||||
|
Reference in New Issue
Block a user