Logo Search packages:      
Sourcecode: rosegarden version File versions

void Rosegarden::RosegardenGUIApp::slotFileClose (  )  [slot]

asks for saving if the file is modified, then closes the actual file and window

Definition at line 2390 of file RosegardenGUIApp.cpp.

References m_doc, Rosegarden::RosegardenGUIDoc::saveIfModified(), and setDocument().

Referenced by setupActions(), and slotEditBanks().

    RG_DEBUG << "RosegardenGUIApp::slotFileClose()" << endl;

    if (!m_doc)
        return ;

    KTmpStatusMsg msg(i18n("Closing file..."), this);

    if (m_doc->saveIfModified()) {
        setDocument(new RosegardenGUIDoc(this, m_pluginManager));

    // Don't close the whole view (i.e. Quit), just close the doc.
    //    close();

Generated by  Doxygen 1.6.0   Back to index