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

bool TitleWidget::proceedWithLoad (  )  [private, slot]

Helper function for load methods, checks if there are any unsaved changes and if so warns user any such changes will be lost if they proceed.

Definition at line 659 of file titleWidget.cpp.

References albm, Album::albumModified(), Configuration::getBool(), Window::getConfig(), and window.

Referenced by loadAlbum(), and loadRecentAlbum().

  //if modifications exist and user wants to receive destructive action warnings,
  //ask if they are sure before creating a new album
  if( albm->albumModified() && window->getConfig()->getBool( "alerts", "showDestructiveAlerts" ) )
    QuestionDialog sure( tr("Load album?"),
                         tr("Warning, unsaved modifications to the current album exist. Loading a new album will result in lost work. Are you sure you want to do this?"),
                         this );
      return false;
  return true;

Generated by  Doxygen 1.6.0   Back to index