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

QGeoclueMaster throws error, but QGeoPositionInfoSource shows NoError

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.3.2
    • 5.3.1
    • Positioning
    • None
    • 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

            amccarthy Aaron McCarthy
            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