From: Jean-Baptiste Mardelle Date: Mon, 4 Jul 2011 08:18:01 +0000 (+0000) Subject: Disable save action if we are in the same state as last save X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=14da7744fb6ae036580607c670dd8cca2ed84370;hp=a5ea40d00e353607a2bfcb1f7910f8a9fae6e346;p=kdenlive Disable save action if we are in the same state as last save svn path=/trunk/kdenlive/; revision=5762 --- diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index ea51b42c..7574120f 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -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