Logo Search packages:      
Sourcecode: kdenlive version File versions

void Gui::KdenliveApp::slotFileSave (  )  [slot]

save a document

Definition at line 2714 of file kdenlive.cpp.

References m_doc, KdenliveDoc::projectName(), ProjectFormatManager::saveDocument(), slotFileSaveAs(), slotStatusMsg(), and KdenliveDoc::URL().

Referenced by initActions().

                                   {
      if (m_doc->URL().isEmpty()) slotFileSaveAs(m_doc->projectName());
      else {
            slotStatusMsg(i18n("Saving file..."));
            if (KIO::NetAccess::exists(m_doc->URL(), true, this)) {
                KIO::NetAccess::copy(m_doc->URL(), KURL(m_doc->URL().path() + "~"), this);
            }
            m_projectFormatManager.saveDocument(m_doc->URL(), m_doc);
            slotStatusMsg(i18n("Ready."));
            fileOpenRecent->addURL(m_doc->URL());
      }
    }


Generated by  Doxygen 1.6.0   Back to index