summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/cocoa/qcocoaclipboard.mm
diff options
context:
space:
mode:
authorArnt Witteveen <arntw@enfocus.com>2012-03-14 14:53:32 +0100
committerQt by Nokia <qt-info@nokia.com>2012-03-17 01:52:17 +0100
commit437da962c2b486b1a1722aac003bfa00b93ac204 (patch)
treeb4cec7f4aa45459a86f4aa95a20c847751c2872a /src/plugins/platforms/cocoa/qcocoaclipboard.mm
parentc227546d2e4077ff85ea3a830f9109ada28f12b9 (diff)
Fix bug showing folder icons for files
Fix an issue where the cache was updated with the folder icon, even though this is never used from the cache. This caused files to sometimes be shown with a folder icon: If a folder has an extension (e.g. a folder named 'folder.ext'), this means the folder icon will be written to the cache for the 'ext' extension, and from that point on all .ext files will be shown with the folder icon. The fix is to not save an icon in the cache for those cases where it will not be used from the cache anyway, by using the same condition for updating the cache as for reading it (which is in line 8 of the same function). Change-Id: I9ce8fca0718b2b62b9390fa64989acd54952a88e Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com> Reviewed-by: Robin Burchell <robin+qt@viroteck.net> Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
Diffstat (limited to 'src/plugins/platforms/cocoa/qcocoaclipboard.mm')
0 files changed, 0 insertions, 0 deletions