aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports
diff options
context:
space:
mode:
authorAndrew den Exter <andrew.den-exter@nokia.com>2012-06-21 17:01:14 +1000
committerQt by Nokia <qt-info@nokia.com>2012-06-22 04:43:54 +0200
commit5ac47a3909762e62b054a951adb6b5771cc6d0eb (patch)
tree21155ab756fde2cd595691666fcfbe700ef15e05 /src/imports
parent25f6f5bedec23756b83152a4952ade1d94493350 (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')
-rw-r--r--src/imports/folderlistmodel/fileinfothread.cpp4
-rw-r--r--src/imports/folderlistmodel/fileinfothread_p.h2
2 files changed, 3 insertions, 3 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();
}
diff --git a/src/imports/folderlistmodel/fileinfothread_p.h b/src/imports/folderlistmodel/fileinfothread_p.h
index d144f520d0..8ff59488ea 100644
--- a/src/imports/folderlistmodel/fileinfothread_p.h
+++ b/src/imports/folderlistmodel/fileinfothread_p.h
@@ -71,7 +71,7 @@ public:
void setSortFlags(QDir::SortFlags flags);
void setNameFilters(const QStringList & nameFilters);
void setShowDirs(bool showFolders);
- void setShowDirsFirst(bool showDirsFirst);
+ void setShowDirsFirst(bool show);
void setShowDotDot(bool on);
void setShowOnlyReadable(bool on);