https://bugs.kde.org/show_bug.cgi?id=400268

            Bug ID: 400268
           Summary: Config file problem "device section invalid"
           Product: kaffeine
           Version: 2.0.15
          Platform: Fedora RPMs
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: mchehab+sams...@kernel.org
          Reporter: georg.w...@gmx.de
  Target Milestone: ---

SUMMARY
Using a DVBs setup, at startup the saved config file config.dvb cannot be
reimported.

Reasoning:
1. According to dvbconfig.h, latitude and longitude is int (DvbConfigBase
definition)
2. In dvbmanager.cpp/DvbManager::writeDeviceConfigs() the config is written. 
   Using Diseq config the values above are not used and undefined. I got e.g.
   latitude=-1212696649
   longitude=-1212696649
3. Reimported is in dvbmanager.cpp/DvbManager::readDeviceConfigs() with
   config->latitude = reader.readDouble(QLatin1String("latitude"));
   config->longitude = reader.readInt(QLatin1String("longitude"));
4. This results in:
   kaffeine.dvb: Found some problems at .../config.dvb: device section invalid

I don't know what's exactly the reason, probably transform from Double to Int
at lat?
At least defining the values 0/0 in config dvb solves the issue!

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to