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

QSettings can provide a public method to clear the error on demand

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 4.8.0
    • Core: Other
    • None
    • All supported platforms

    Description

      Hi,

      After I call sync(), I get AccessError when I checked the status. Then I fix the permission through program and call sync() again. This synced the settings but the error is not cleared.

      From Qsettings.cpp -
      "
      /* We only set an error if there isn't one set already. This way the user always gets the first error that occurred. We always allow clearing errors.
      */
      void QSettingsPrivate::setStatus(QSettings::Status status) const
      "/

      So a public function in QSettings.cpp will be good to clear the error on demand.

      -Karthik

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            kartlee05 Karthik Rajagopalan
            Votes:
            3 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes