From 69270ec929490d2295db2a96e419b82366cac42e Mon Sep 17 00:00:00 2001 From: Till Theato Date: Fri, 16 Jul 2010 08:55:38 +0000 Subject: [PATCH] Fix changing in/out points not setting the document modified: http://kdenlive.org/mantis/view.php?id=1693 svn path=/trunk/kdenlive/; revision=4583 --- src/geometryval.h | 2 +- src/keyframeedit.h | 2 +- src/mainwindow.cpp | 4 ++++ src/monitor.cpp | 4 +++- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/geometryval.h b/src/geometryval.h index 09556ad9..1eee0374 100644 --- a/src/geometryval.h +++ b/src/geometryval.h @@ -46,7 +46,7 @@ public: QDomElement getParamDesc(); QString getValue() const; void setFrameSize(QPoint p); - /** @brief Update the timecode display according to settings (frame number or hh:mm:ss:ff) */ + /** @brief Updates the timecode display according to settings (frame number or hh:mm:ss:ff) */ void updateTimecodeFormat(); private: diff --git a/src/keyframeedit.h b/src/keyframeedit.h index fa006fc9..b79498da 100644 --- a/src/keyframeedit.h +++ b/src/keyframeedit.h @@ -84,7 +84,7 @@ public: void setupParam(); void addParameter(QDomElement e); const QString getValue(const QString &name); - /** @brief Update the timecode display according to settings (frame number or hh:mm:ss:ff) */ + /** @brief Updates the timecode display according to settings (frame number or hh:mm:ss:ff) */ void updateTimecodeFormat(); private: diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index b7968833..ccec3a7b 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -2042,6 +2042,8 @@ void MainWindow::connectDocument(TrackView *trackView, KdenliveDoc *doc) //cha disconnect(m_projectMonitor, SIGNAL(renderPosition(int)), m_activeTimeline, SLOT(moveCursorPos(int))); disconnect(m_projectMonitor, SIGNAL(zoneUpdated(QPoint)), m_activeTimeline, SLOT(slotSetZone(QPoint))); disconnect(m_projectMonitor, SIGNAL(durationChanged(int)), m_activeTimeline, SLOT(setDuration(int))); + disconnect(m_projectMonitor, SIGNAL(zoneUpdated(QPoint)), m_activeDocument, SLOT(setModified())); + disconnect(m_clipMonitor, SIGNAL(zoneUpdated(QPoint)), m_activeDocument, SLOT(setModified())); disconnect(m_projectList, SIGNAL(projectModified()), m_activeDocument, SLOT(setModified())); disconnect(m_projectMonitor->render, SIGNAL(refreshDocumentProducers()), m_activeDocument, SLOT(checkProjectClips())); @@ -2110,6 +2112,8 @@ void MainWindow::connectDocument(TrackView *trackView, KdenliveDoc *doc) //cha connect(m_projectMonitor, SIGNAL(renderPosition(int)), trackView, SLOT(moveCursorPos(int))); connect(m_projectMonitor, SIGNAL(zoneUpdated(QPoint)), trackView, SLOT(slotSetZone(QPoint))); connect(m_clipMonitor, SIGNAL(zoneUpdated(QPoint)), m_projectList, SLOT(slotUpdateClipCut(QPoint))); + connect(m_projectMonitor, SIGNAL(zoneUpdated(QPoint)), doc, SLOT(setModified())); + connect(m_clipMonitor, SIGNAL(zoneUpdated(QPoint)), doc, SLOT(setModified())); connect(m_projectMonitor, SIGNAL(durationChanged(int)), trackView, SLOT(setDuration(int))); connect(m_projectMonitor->render, SIGNAL(refreshDocumentProducers()), doc, SLOT(checkProjectClips())); diff --git a/src/monitor.cpp b/src/monitor.cpp index edce9a5f..8a415530 100644 --- a/src/monitor.cpp +++ b/src/monitor.cpp @@ -71,7 +71,9 @@ Monitor::Monitor(QString name, MonitorManager *manager, QString profile, QWidget if (name != "chapter") { toolbar->addAction(KIcon("kdenlive-zone-start"), i18n("Set zone start"), this, SLOT(slotSetZoneStart())); toolbar->addAction(KIcon("kdenlive-zone-end"), i18n("Set zone end"), this, SLOT(slotSetZoneEnd())); - } else m_ruler->setZone(-3, -2); + } else { + m_ruler->setZone(-3, -2); + } toolbar->addAction(KIcon("media-seek-backward"), i18n("Rewind"), this, SLOT(slotRewind())); toolbar->addAction(KIcon("media-skip-backward"), i18n("Rewind 1 frame"), this, SLOT(slotRewindOneFrame())); -- 2.39.2