Logo Search packages:      
Sourcecode: rosegarden version File versions

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

closes all open windows by calling close() on each memberList item until the list is empty, then quits the application. If queryClose() returns false because the user canceled the saveModified() dialog, the closing breaks.

Definition at line 2431 of file RosegardenGUIApp.cpp.

References slotStatusMsg().

Referenced by setupActions().



    // close the first window, the list makes the next one the first again.
    // This ensures that queryClose() is called on each window to ask for closing
    KMainWindow* w;
    if (memberList) {

        for (w = memberList->first(); w != 0; w = memberList->next()) {
            // only close the window if the closeEvent is accepted. If
            // the user presses Cancel on the saveIfModified() dialog,
            // the window and the application stay open.
            if (!w->close())

Generated by  Doxygen 1.6.0   Back to index