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

int Rosegarden::RosegardenApplication::newInstance (  )  [virtual]

Handle the attempt at creation of a new instance - only accept new file names which we attempt to load into the existing instance (if it exists)

Definition at line 52 of file RosegardenApplication.cpp.

    KCmdLineArgs *args = KCmdLineArgs::parsedArgs();

    if (RosegardenGUIApp::self() && args->count() &&
            RosegardenGUIApp::self()->getDocument() &&
            RosegardenGUIApp::self()->getDocument()->saveIfModified()) {
        // Check for modifications and save if necessary - if cancelled
        // then don't load the new file.

    return KUniqueApplication::newInstance();

Generated by  Doxygen 1.6.0   Back to index