diff --git a/common/settings/settings_manager.cpp b/common/settings/settings_manager.cpp index 279d5198c9..8fa4bd8513 100644 --- a/common/settings/settings_manager.cpp +++ b/common/settings/settings_manager.cpp @@ -1017,8 +1017,10 @@ bool SETTINGS_MANAGER::TriggerBackupIfNeeded( REPORTER& aReporter ) const return dt; }; - // Project not saved yet - if( Prj().GetProjectPath().empty() ) + wxFileName projectPath( Prj().GetProjectPath() ); + + // Skip backup if project path isn't valid or writeable + if( !projectPath.IsOk() || !projectPath.Exists() || !projectPath.IsDirWritable() ) return true; wxString backupPath = GetProjectBackupsPath();