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

QFileSelector ignores default Locale

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.5.1
    • 5.4.1
    • Core: Other
    • None
    • e70d4b989903203e3309272666a42e4ee1846b6c

    Description

      The current implementation of the QFileSelector's QFileSelectorPrivate::updateSelector() function only considers the system locale and not the default locale which in many other cases is used instead because if can be changed by using QLocale::setDefault() and falls back to the system locale if not set.

      Please consider the following adjustment:

      // Original version
      sharedData->staticSelectors << QLocale::system().name();
      
      // Proposed version
      sharedData->staticSelectors << QLocale().name();
      

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            miketrahearn Mike Trahearn
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes