collection->addAction("paste_effects", pasteEffects);
connect(pasteEffects , SIGNAL(triggered()), this, SLOT(slotPasteEffects()));
- KStandardAction::close(this, SLOT(closeCurrentDocument()), collection);
+ m_closeAction = KStandardAction::close(this, SLOT(closeCurrentDocument()), collection);
KStandardAction::quit(this, SLOT(queryQuit()), collection);
connectDocumentInfo(doc);
connectDocument(trackView, doc);
} else m_timelineArea->setTabBarHidden(false);
+ m_closeAction->setEnabled(m_timelineArea->count() > 1);
}
void MainWindow::activateDocument() {
void MainWindow::connectDocument(TrackView *trackView, KdenliveDoc *doc) { //changed
//m_projectMonitor->stop();
+ m_closeAction->setEnabled(m_timelineArea->count() > 1);
kDebug() << "/////////////////// CONNECTING DOC TO PROJECT VIEW ////////////////";
if (m_activeDocument) {
if (m_activeDocument == doc) return;