-AddClipCommand::AddClipCommand(ProjectList *list, const QStringList &names, const QDomElement &xml, const int id, const KUrl &url, const QString &group, bool doIt)
- : m_list(list), m_names(names), m_xml(xml), m_id(id), m_url(url), m_group(group), m_doIt(doIt) {
- if (doIt) setText(i18n("Add clip"));
- else setText(i18n("Delete clip"));
- }
+AddClipCommand::AddClipCommand(KdenliveDoc *doc, const QDomElement &xml, const QString &id, bool doIt, QUndoCommand * parent) :
+ QUndoCommand(parent),
+ m_doc(doc),
+ m_xml(xml),
+ m_id(id),
+ m_doIt(doIt)
+{
+ if (doIt) setText(i18n("Add clip"));
+ else setText(i18n("Delete clip"));
+}