]> git.sesse.net Git - kdenlive/commitdiff
Fix changing in/out points not setting the document modified:
authorTill Theato <root@ttill.de>
Fri, 16 Jul 2010 08:55:38 +0000 (08:55 +0000)
committerTill Theato <root@ttill.de>
Fri, 16 Jul 2010 08:55:38 +0000 (08:55 +0000)
http://kdenlive.org/mantis/view.php?id=1693

svn path=/trunk/kdenlive/; revision=4583

src/geometryval.h
src/keyframeedit.h
src/mainwindow.cpp
src/monitor.cpp

index 09556ad9a77f6b26568fdbc78fd1ae0aa3b747e0..1eee0374978522ae9696cd3b3fd3d5e4ff6240a9 100644 (file)
@@ -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:
index fa006fc9698a3f099fabca2d755abcf82afc7f6f..b79498daa4695d213d0a11a7eea2af3171cd9e0e 100644 (file)
@@ -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:
index b796883323a85c89f361fa7746d82d04e34e3f6d..ccec3a7bb1f27d7f3bc64241f1e7900bbcb6f9ee 100644 (file)
@@ -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()));
 
index edce9a5fec35677cbb29c1c650f45c3398353d8a..8a4155300b5990e90bdc55d1c908e39533417282 100644 (file)
@@ -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()));