diff options
author | Rohan McGovern <rohan.mcgovern@nokia.com> | 2012-10-05 16:05:33 +1000 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-10-09 00:25:57 +0200 |
commit | 0776746d47c9b0d575b6190b1882c571a76ee086 (patch) | |
tree | efec373fd7698a3ad33fadb010e23cb029ea9ec4 /tests/auto/widgets/dialogs/qfiledialog | |
parent | caaeb2043541865ef7a9da424238d54b6556f8aa (diff) |
tst_qfiledialog: fixed typo causing semi-random completer() failure
completer_data() was attempting to find the first folder which did
not begin with a '.' character under QDir::root() for usage during the
test.
However, a typo caused it to find the first folder even if it _did_
begin with a '.'; unless the first folder returned by entryList()
was ".", in which case no folder would be found.
Change-Id: Ie95f1add797973d06a8d5f2fa32935366a008de5
Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Diffstat (limited to 'tests/auto/widgets/dialogs/qfiledialog')
-rw-r--r-- | tests/auto/widgets/dialogs/qfiledialog/tst_qfiledialog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/widgets/dialogs/qfiledialog/tst_qfiledialog.cpp b/tests/auto/widgets/dialogs/qfiledialog/tst_qfiledialog.cpp index 32e1311505..8a2d6e33ec 100644 --- a/tests/auto/widgets/dialogs/qfiledialog/tst_qfiledialog.cpp +++ b/tests/auto/widgets/dialogs/qfiledialog/tst_qfiledialog.cpp @@ -424,7 +424,7 @@ void tst_QFiledialog::completer_data() QStringList list = root.entryList(); QString folder; for (int i = 0; i < list.count(); ++i) { - if (list.at(0) == QChar('.')) + if (list[i].at(0) == QChar('.')) continue; QFileInfo info(QDir::rootPath() + list[i]); if (info.isDir()) { |