aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Baptiste Mardelle <[email protected]>2015-05-08 12:12:26 +0200
committerJean-Baptiste Mardelle <[email protected]>2015-05-08 12:12:26 +0200
commit48de471374f7729ae5ac918e1dd96991deb2f1b4 (patch)
treec19ddaa4d0d3c05ad6c72bbf23d14ad2c2e361bf
parenta827dd29fd6bf239a9d9f0940f67262c3b9544ce (diff)
Mark document modified when editing clip markers
-rw-r--r--src/bin/bin.cpp5
-rw-r--r--src/bin/bin.h1
-rw-r--r--src/bin/projectclip.cpp1
3 files changed, 7 insertions, 0 deletions
diff --git a/src/bin/bin.cpp b/src/bin/bin.cpp
index 03478ad..447aa87 100644
--- a/src/bin/bin.cpp
+++ b/src/bin/bin.cpp
@@ -1888,6 +1888,7 @@ void Bin::slotAddClipMarker(const QString &id, QList <CommentedTime> newMarkers,
clip->addClipMarker(newMarkers, groupCommand);
if (groupCommand->childCount() > 0) m_doc->commandStack()->push(groupCommand);
else delete groupCommand;
+
}
void Bin::slotLoadClipMarkers(const QString &id)
@@ -2034,3 +2035,7 @@ void Bin::showTitleWidget(ProjectClip *clip)
delete dia_ui;
}
+void Bin::setDocumentModified()
+{
+ m_doc->setModified(true);
+} \ No newline at end of file
diff --git a/src/bin/bin.h b/src/bin/bin.h
index 9a040df..f5de07d 100644
--- a/src/bin/bin.h
+++ b/src/bin/bin.h
@@ -412,6 +412,7 @@ public:
/** @brief Add an effect to a bin clip. */
void addEffect(const QString &id, const QDomElement &effect);
void editMasterEffect(ClipController *ctl);
+ void setDocumentModified();
private slots:
void slotAddClip();
diff --git a/src/bin/projectclip.cpp b/src/bin/projectclip.cpp
index 3e2b18a..61de61b 100644
--- a/src/bin/projectclip.cpp
+++ b/src/bin/projectclip.cpp
@@ -577,6 +577,7 @@ void ProjectClip::addMarkers(QList <CommentedTime> &markers)
}
// refresh markers in clip monitor
bin()->refreshClipMarkers(m_id);
+ bin()->setDocumentModified();
// refresh markers in timeline clips
emit refreshClipDisplay();
}