From 14da7744fb6ae036580607c670dd8cca2ed84370 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Mardelle Date: Mon, 4 Jul 2011 08:18:01 +0000 Subject: [PATCH 1/1] Disable save action if we are in the same state as last save svn path=/trunk/kdenlive/; revision=5762 --- src/mainwindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.2