diff options
author | Rohan McGovern <rohan.mcgovern@nokia.com> | 2012-10-05 06:05:33 (GMT) |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-10-12 00:20:20 (GMT) |
commit | 0246abe1b029a59d804182bd9496f1c2c5ee7d7f (patch) | |
tree | 9ef33fc280903eb75fb90f4f86603a7eadd806ef /tests/auto | |
parent | 379ecbe8a7353d8fc6e9f1608c9c62f0ed27c891 (diff) | |
download | Qt-0246abe1b029a59d804182bd9496f1c2c5ee7d7f.zip Qt-0246abe1b029a59d804182bd9496f1c2c5ee7d7f.tar.gz Qt-0246abe1b029a59d804182bd9496f1c2c5ee7d7f.tar.bz2 |
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.
(cherry picked from qtbase commit 0776746d47c9b0d575b6190b1882c571a76ee086)
Change-Id: I1d98afa071ea4300e4e2f0aa324e8c1fd8a0728e
Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/qfiledialog/tst_qfiledialog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qfiledialog/tst_qfiledialog.cpp b/tests/auto/qfiledialog/tst_qfiledialog.cpp index 8342b5f..8e69b3c 100644 --- a/tests/auto/qfiledialog/tst_qfiledialog.cpp +++ b/tests/auto/qfiledialog/tst_qfiledialog.cpp @@ -430,7 +430,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()) { |