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>
This commit is contained in:
parent
caaeb20435
commit
0776746d47
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user