Logo Search packages:      
Sourcecode: kdenlive version File versions

void Gui::KdenliveApp::slotFileQuit (  )  [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 2779 of file kdenlive.cpp.

References saveOptions(), and slotStatusMsg().

Referenced by initActions().

                                   {
      slotStatusMsg(i18n("Exiting..."));
      saveOptions();
      // 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; w = memberList->next()) {
            // only close the window if the closeEvent is accepted. If the user presses Cancel on the saveModified() dialog,
            // the window and the application stay open.
            kdDebug() << "Closing" << w << endl;
            if (!w->close())
                break;
          }
          kdDebug() << "Done" << endl;
      }
    }


Generated by  Doxygen 1.6.0   Back to index