Commit df1ca260 authored by Marco Gittler's avatar Marco Gittler

fix bug when no vpre= is set

svn path=/trunk/kdenlive/; revision=5574
parent 3c7e2701
......@@ -63,7 +63,10 @@ int main(int argc, char **argv)
QString dest = desturl.path();
bool dualpass = false;
bool doerase;
QString vpre=args.at(args.indexOf(QRegExp("vpre=.*")));
QString vpre;
int vprepos=args.indexOf(QRegExp("vpre=.*"));
if (vprepos>=0)
vpre=args.at(vprepos);
QStringList vprelist=vpre.replace("vpre=","").split(",");
if (vprelist.size()>0)
args.replaceInStrings(QRegExp("^vpre=.*"),QString("vpre=").append(vprelist.at(0)));
......
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