Logo Search packages:      
Sourcecode: kdenlive version File versions

void Gui::KdenliveApp::saveProperties ( KConfig *  _cfg  )  [protected, virtual]

saves the window properties for each open window during session end to the session config file, including saving the currently opened file by a temporary filename provided by KApplication.

See also:

Definition at line 2016 of file kdenlive.cpp.

References KdenliveDoc::isModified(), m_doc, ProjectFormatManager::saveDocument(), and KdenliveDoc::URL().

      if (m_doc->URL().fileName() != i18n("Untitled")
          && !m_doc->isModified()) {
          // saving to tempfile not necessary

      } else {
          KURL url = m_doc->URL();
          _cfg->writeEntry("filename", url.url());
          _cfg->writeEntry("modified", m_doc->isModified());
          QString tempname = kapp->tempSaveName(url.url());
          QString tempurl = KURL::encode_string(tempname);
          KURL _url(tempurl);
          m_projectFormatManager.saveDocument(_url, m_doc);

Generated by  Doxygen 1.6.0   Back to index