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

When GTK caching is enabled, subdirectories are unconditionally cleared, which may occasionally result in icons failing to be located.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • 6.8.3
    • GUI: Other
    • None
    • All, Linux/X11

      Even if the GTK cache returns an empty result (result.size() == 0), the code executes subDirs.clear() and then attempts to populate subDirs with the empty result. This causes the subsequent icon file search loop (the for loop starting on line 507) to have no subdirectories to search, thereby failing to locate icon files that actually exist (such as those in the hicolor theme).

       

      Reproduction steps:

      1. Launch the demo application, which periodically scans desktop application icons.
        2. Download several applications; you will observe that the retrieved qicon information appears null. However, restarting the demo allows it to correctly identify the corresponding qicon information.

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            tsl115 Shilin Tian
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There is 1 open Gerrit change