Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-40425

QGeoclueMaster throws error, but QGeoPositionInfoSource shows NoError

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.3.1
    • Fix Version/s: 5.3.2
    • Component/s: Positioning
    • Labels:
      None
    • Environment:
      Linux, openSuse 13.1

      Description

      When using geoSource = QGeoPositionInfoSource::createDefaultSource(0);
      my Linux box creates a "geoclue" object.
      This however shows an error message on the terminal:
      QGeoclueMaster error creating GeoclueMasterClient.
      Geoclue error: The name org.freedesktop.Geoclue.Master was not provided by any .service files

      The bug here is, even tough there is some initialisation error, QGeoPositionInfoSource::error() still returns NoError

      Quickly checking the code, I see that although
      QGeoPositionInfoSourceGeoclueMaster::configurePositionSource()
      returns a bool false in this case, the returned bool is never used and QGeoPositionInfoSourceGeoclueMaster::error() has a hardcoded return value of always NoError.

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            amccarthy Aaron McCarthy
            Reporter:
            mkoller Martin Koller
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes