Uploaded image for project: 'Qt Mobility'
  1. Qt Mobility
  2. QTMOBILITY-1499

Calling manager functions from within slots called from other manager functions can make the error information incorrect.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • 1.1.x
    • 1.0.0, 1.1.0
    • Contacts, Organizer
    • None
    • d933fd97230acc119c7d0fbbf5db31b4fb738a86

      In the following sequence of code, the QCM/QOM::error() function can return incorrect information:

      manager->save(good objects)
       -> contactsAdded etc signal
        -> slot { manager->causeError(); }
       -> manager engine save returns
      manager->error() == error from causeError(), rather than NoError.
      

      It's even more complicated if the engine itself uses the error within the save function (e.g. return *error == NoError;)

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

            mgoddard Michael Goddard (closed Nokia identity) (Inactive)
            mgoddard Michael Goddard (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes