]> git.sesse.net Git - kdenlive/commitdiff
Fix repeated close confirmation:
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Sun, 13 Feb 2011 00:33:25 +0000 (00:33 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Sun, 13 Feb 2011 00:33:25 +0000 (00:33 +0000)
http://kdenlive.org/mantis/view.php?id=2004

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

src/mainwindow.cpp
src/mainwindow.h

index 0e3c59d8dddb4ad5aa82444d015677aafdeda2ff..64c420cf0e56863ee694c6233f03f30fdbd134fc 100644 (file)
@@ -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);
index 34e24d1a408cfb2f006cae2527a96dd5f249a077..6b6983285fefe72cdbb0768b71a02eac64cf2335 100644 (file)
@@ -317,7 +317,6 @@ public slots:
 
 private slots:
     void newFile(bool showProjectSettings = true, bool force = false);
-    void queryQuit();
     void activateDocument();
     void connectDocument(TrackView*, KdenliveDoc*);