diff options
author | Andrew den Exter <andrew.den-exter@nokia.com> | 2012-06-21 17:01:14 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-06-22 04:43:54 +0200 |
commit | 5ac47a3909762e62b054a951adb6b5771cc6d0eb (patch) | |
tree | 21155ab756fde2cd595691666fcfbe700ef15e05 /src/imports/folderlistmodel/fileinfothread.cpp | |
parent | 25f6f5bedec23756b83152a4952ade1d94493350 (diff) |
Don't shadow member variable with argument.
Function argument is being written to itself rather than the member
variable preventing the property from ever changing.
Task-number: QTBUG-26158
Change-Id: Id204a193300c62feeb007a2ea9df89cba5e1d513
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
Diffstat (limited to 'src/imports/folderlistmodel/fileinfothread.cpp')
-rw-r--r-- | src/imports/folderlistmodel/fileinfothread.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/imports/folderlistmodel/fileinfothread.cpp b/src/imports/folderlistmodel/fileinfothread.cpp index 64acfbe798..ee34376f9b 100644 --- a/src/imports/folderlistmodel/fileinfothread.cpp +++ b/src/imports/folderlistmodel/fileinfothread.cpp @@ -150,10 +150,10 @@ void FileInfoThread::setShowDirs(bool showFolders) condition.wakeAll(); } -void FileInfoThread::setShowDirsFirst(bool showDirsFirst) +void FileInfoThread::setShowDirsFirst(bool show) { QMutexLocker locker(&mutex); - showDirsFirst = showDirsFirst; + showDirsFirst = show; folderUpdate = true; condition.wakeAll(); } |