]> git.sesse.net Git - kdenlive/commitdiff
Disable save action if we are in the same state as last save
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Mon, 4 Jul 2011 08:18:01 +0000 (08:18 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Mon, 4 Jul 2011 08:18:01 +0000 (08:18 +0000)
svn path=/trunk/kdenlive/; revision=5762

src/mainwindow.cpp

index ea51b42ccf3602f85d163707e02120ff8aaf011a..7574120fb8a148993b8c6bc5394be5de3049c66d 100644 (file)
@@ -359,6 +359,7 @@ MainWindow::MainWindow(const QString &MltPath, const KUrl & Url, const QString &
 
 
     setupActions();
+    connect(m_commandStack, SIGNAL(cleanChanged(bool)), m_saveAction, SLOT(setDisabled(bool)));
 
 
     // Close non-general docks for the initial layout
@@ -1908,6 +1909,7 @@ bool MainWindow::saveFileAs(const QString &outputFileName)
     m_activeDocument->setModified(false);
     m_fileOpenRecent->addUrl(KUrl(outputFileName));
     m_fileRevert->setEnabled(true);
+    m_undoView->stack()->setClean();
     return true;
 }
 
@@ -4360,7 +4362,6 @@ void MainWindow::slotBlockClipMonitor(const QString id)
 }
 
 
-
 #include "mainwindow.moc"
 
 #ifdef DEBUG_MAINW