http://www.kdenlive.org:80/mantis/view.php?id=552
svn path=/branches/KDE4/; revision=2936
}
void MainWindow::doOpenFile(const KUrl &url, KAutoSaveFile *stale) {
}
void MainWindow::doOpenFile(const KUrl &url, KAutoSaveFile *stale) {
- KdenliveDoc *doc;
- doc = new KdenliveDoc(url, KUrl(), m_commandStack, QString(), QPoint(3, 2), m_projectMonitor->render, this);
+ KdenliveDoc *doc = new KdenliveDoc(url, KUrl(), m_commandStack, QString(), QPoint(3, 2), m_projectMonitor->render, this);
if (stale == NULL) {
stale = new KAutoSaveFile(url, doc);
doc->m_autosave = stale;
if (stale == NULL) {
stale = new KAutoSaveFile(url, doc);
doc->m_autosave = stale;
}
void MainWindow::slotUpdateDocumentState(bool modified) {
}
void MainWindow::slotUpdateDocumentState(bool modified) {
+ if (!m_activeDocument) return;
setCaption(m_activeDocument->description(), modified);
m_saveAction->setEnabled(modified);
if (modified) {
setCaption(m_activeDocument->description(), modified);
m_saveAction->setEnabled(modified);
if (modified) {