intcreate=KMessageBox::questionYesNo(parent,i18n("Project directory %1 does not exist. Create it?",m_projectFolder.path()));
if(create==KMessageBox::Yes){
QDirprojectDir(m_projectFolder.path());
boolok=projectDir.mkpath(m_projectFolder.path());
if(!ok){
KMessageBox::sorry(parent,i18n("The directory %1, could not be created.\nPlease make sure you have the required permissions.",m_projectFolder.path()));
if(!m_projectFolder.isEmpty()){
// Ask to create the project directory if it does not exist
KMessageBox::sorry(parent,i18n("The project directory %1, could not be created.\nPlease make sure you have the required permissions.\nDefaulting to system folders",m_projectFolder));
}else{
KMessageBox::information(parent,i18n("Document project folder is invalid, using system default folders"));
KMessageBox::information(parent,i18n("Document project folder is invalid, setting it to the default one: %1",KdenliveSettings::defaultprojectfolder()));
if(KMessageBox::questionYesNo(QApplication::activeWindow(),i18n("You have changed the project folder. Do you want to copy the cached data from %1 to the new folder %2?",m_projectFolder.path(),url.path()))==KMessageBox::Yes)moveProjectData(url);
m_projectFolder=url;
if(KMessageBox::questionYesNo(QApplication::activeWindow(),i18n("You have changed the project folder. Do you want to copy the cached data from %1 to the new folder %2?",m_projectFolder,url.path()))==KMessageBox::Yes)moveProjectData(url);
if(KMessageBox::warningContinueCancel(this,i18n("This will move all temporary files from <b>%1</b> to <b>%2</b>",project->projectFolder(),w->storageFolder().isEmpty()?QStandardPaths::writableLocation(QStandardPaths::CacheLocation):w->storageFolder()))==KMessageBox::Continue){