diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2005-05-22 11:23:22 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2005-05-22 11:23:22 +0200 |
commit | 6b258329131696df045e333886a163d820f2115b (patch) | |
tree | 40993fc7cf16b2d6a4fa7a2456f8fac081914d02 /vdr.c | |
parent | 710f6c37d17a755a1e53474b0c087616a9578d0d (diff) | |
download | vdr-6b258329131696df045e333886a163d820f2115b.tar.gz vdr-6b258329131696df045e333886a163d820f2115b.tar.bz2 |
No longer saving the setup in case of a fatal error
Diffstat (limited to 'vdr.c')
-rw-r--r-- | vdr.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -22,7 +22,7 @@ * * The project's page is at http://www.cadsoft.de/vdr * - * $Id: vdr.c 1.203 2005/03/20 10:58:59 kls Exp $ + * $Id: vdr.c 1.204 2005/05/22 11:20:22 kls Exp $ */ #include <getopt.h> @@ -940,9 +940,11 @@ Exit: Remotes.Clear(); Audios.Clear(); Skins.Clear(); - Setup.CurrentChannel = cDevice::CurrentChannel(); - Setup.CurrentVolume = cDevice::CurrentVolume(); - Setup.Save(); + if (ExitCode != 2) { + Setup.CurrentChannel = cDevice::CurrentChannel(); + Setup.CurrentVolume = cDevice::CurrentVolume(); + Setup.Save(); + } cDevice::Shutdown(); PluginManager.Shutdown(); ReportEpgBugFixStats(); |