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

Address Book Tutorial Step 6: when loading the contacts, contacts->clear() should be called instead of contacts->empty()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.0.0
    • 4.6.2
    • Examples and Demos
    • None
    • I9bb8e855d96cecd2a0df336cb46e308ddedf0d07

    Description

      See summary. empty() method just returns whether the map is empty or not. It does not make the map empty, right way to do it is to call clear() method.

      Attachments

        For Gerrit Dashboard: QTBUG-8849
        # Subject Branch Project Status CR V

        Activity

          People

            mitch_curtis Mitch Curtis
            blacharnia Rafal Piotrowski
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes