aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Baptiste Mardelle <[email protected]>2016-06-22 21:59:35 +0200
committerJean-Baptiste Mardelle <[email protected]>2016-06-22 21:59:35 +0200
commita1793b0cfdafbd9d84aba4ff9a36c2c2f92921ed (patch)
tree66c8af99fe7d2265367934f873db83ed00db73f3
parent5238614252a40b664ac49bdea8666bd90443b297 (diff)
Fix crash on undo effect deletion
-rw-r--r--src/effectstack/effectstackview2.cpp2
-rw-r--r--src/effectstack/effectstackview2.h8
2 files changed, 5 insertions, 5 deletions
diff --git a/src/effectstack/effectstackview2.cpp b/src/effectstack/effectstackview2.cpp
index 3cac1df..df488a9 100644
--- a/src/effectstack/effectstackview2.cpp
+++ b/src/effectstack/effectstackview2.cpp
@@ -805,7 +805,7 @@ void EffectStackView2::slotDeleteGroup(QDomDocument doc)
emit removeEffectGroup(clip, ix, doc);
}
-void EffectStackView2::slotDeleteEffect(const QDomElement &effect)
+void EffectStackView2::slotDeleteEffect(const QDomElement effect)
{
if (m_status == TIMELINE_TRACK)
emit removeEffect(NULL, m_trackindex, effect);
diff --git a/src/effectstack/effectstackview2.h b/src/effectstack/effectstackview2.h
index 310927a..411610d 100644
--- a/src/effectstack/effectstackview2.h
+++ b/src/effectstack/effectstackview2.h
@@ -204,7 +204,7 @@ private slots:
void slotMoveEffectUp(const QList <int> &indexes, bool up);
/** @brief Delete an effect in the stack. */
- void slotDeleteEffect(const QDomElement &effect);
+ void slotDeleteEffect(const QDomElement effect);
/** @brief Delete all effect in a group. */
void slotDeleteGroup(QDomDocument doc);
@@ -256,9 +256,9 @@ private slots:
void slotSwitchCompare(bool enable);
signals:
- void removeEffectGroup(ClipItem*, int, const QDomDocument&);
- void removeEffect(ClipItem*, int, const QDomElement&);
- void removeMasterEffect(const QString &id, const QDomElement&);
+ void removeEffectGroup(ClipItem*, int, const QDomDocument);
+ void removeEffect(ClipItem*, int, const QDomElement);
+ void removeMasterEffect(const QString &id, const QDomElement);
void addMasterEffect(const QString &id, const QDomElement&);
/** Parameters for an effect changed, update the filter in timeline */
void updateEffect(ClipItem*, int, const QDomElement&, const QDomElement &, int,bool);