- FIX: Samsung CablePrime channel list was not saved

- FIX: deleted Samsung analog, DVB-C and DVB-T channels re-appeared after reloading the file
- FIX: exception when overwriting an existing file
This commit is contained in:
hbeham
2013-07-19 19:05:07 +02:00
parent f99c865b51
commit f83e53f9cd
6 changed files with 27 additions and 11 deletions

View File

@@ -58,6 +58,8 @@ namespace ChanSort.Loader.Samsung
this.Lock = data.GetFlag(_Lock);
this.Encrypted = data.GetFlag(_Encrypted);
this.IsDeleted = data.GetFlag(_Deleted);
if (this.IsDeleted)
this.OldProgramNr = -1;
}
#endregion
@@ -111,6 +113,7 @@ namespace ChanSort.Loader.Samsung
mapping.SetFlag(_InUse, this.InUse);
if (this.NewProgramNr >= 0)
mapping.SetWord(_ProgramNr, this.NewProgramNr);
if (this.IsNameModified)
{
int bytes = mapping.SetString(_Name, this.Name, mapping.Settings.GetInt("lenName"));
@@ -119,8 +122,7 @@ namespace ChanSort.Loader.Samsung
}
this.UpdateRawFavorites();
mapping.SetFlag(_Lock, this.Lock);
if (this.NewProgramNr == -1)
mapping.SetFlag(_Deleted, true);
mapping.SetFlag(_Deleted, this.NewProgramNr < 0);
this.UpdateChecksum();
}