Logo Search packages:      
Sourcecode: rosegarden version File versions  Download package

void RosegardenGUIApp::slotFileClose (  )  [slot]

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

Definition at line 2319 of file rosegardengui.cpp.

References m_doc, 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