From a42e8d42ff0bd48629f0ce36b74d39a07f683cec Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Mardelle Date: Sun, 13 Feb 2011 00:33:25 +0000 Subject: [PATCH] Fix repeated close confirmation: http://kdenlive.org/mantis/view.php?id=2004 svn path=/trunk/kdenlive/; revision=5398 --- src/mainwindow.cpp | 9 +-------- src/mainwindow.h | 1 - 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 0e3c59d8..64c420cf 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -617,13 +617,6 @@ MainWindow::~MainWindow() Mlt::Factory::close(); } -void MainWindow::queryQuit() -{ - if (queryClose()) { - close(); - } -} - //virtual bool MainWindow::queryClose() { @@ -1526,7 +1519,7 @@ void MainWindow::setupActions() connect(maxCurrent, SIGNAL(triggered(bool)), this, SLOT(slotMaximizeCurrent(bool)));*/ m_closeAction = KStandardAction::close(this, SLOT(closeCurrentDocument()), collection); - KStandardAction::quit(this, SLOT(queryQuit()), collection); + KStandardAction::quit(this, SLOT(close()), collection); KStandardAction::open(this, SLOT(openFile()), collection); m_saveAction = KStandardAction::save(this, SLOT(saveFile()), collection); KStandardAction::saveAs(this, SLOT(saveFileAs()), collection); diff --git a/src/mainwindow.h b/src/mainwindow.h index 34e24d1a..6b698328 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -317,7 +317,6 @@ public slots: private slots: void newFile(bool showProjectSettings = true, bool force = false); - void queryQuit(); void activateDocument(); void connectDocument(TrackView*, KdenliveDoc*); -- 2.39.2