Logo Search packages:      
Sourcecode: kdenlive version File versions

bool Gui::KdenliveApp::queryClose (  )  [protected, virtual]

queryClose is called by KTMainWindow on each closeEvent of a window. Against the default implementation (only returns true), this calles saveModified() on the document object to ask if the document shall be saved if Modified; on cancel the closeEvent is rejected.

See also:
KTMainWindow::queryClose

KTMainWindow::closeEvent

Definition at line 2059 of file kdenlive.cpp.

References saveModified(), and saveOptions().

                                 {
      bool doClose = true;
      if (m_exportWidget && m_exportWidget->isRunning()) {
          if (KMessageBox::questionYesNo(this, i18n("An export process is currently running.\nClosing Kdenlive will terminate the export.\nClose anyways ?")) ==  KMessageBox::No) doClose = false;
      }
      if (doClose) {
          saveOptions();
          return saveModified();
      }
      return false;
    }


Generated by  Doxygen 1.6.0   Back to index