mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 08:51:10 +02:00
- settings: load scan defaults before save scan.conf
Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
*/
|
||||
|
||||
#include <cstring>
|
||||
#include <unistd.h>
|
||||
#include <system/settings.h>
|
||||
|
||||
#include <zapit/settings.h>
|
||||
@@ -186,6 +187,10 @@ bool CScanSettings::loadSettings(const char * const fileName)
|
||||
|
||||
bool CScanSettings::saveSettings(const char * const fileName)
|
||||
{
|
||||
// get sure we got initialized variables
|
||||
if (access(fileName, R_OK) != 0)
|
||||
loadSettings(fileName);
|
||||
|
||||
configfile.setInt32("bouquetMode", bouquetMode);
|
||||
configfile.setInt32("scanType", scanType);
|
||||
|
||||
|
Reference in New Issue
Block a user