summaryrefslogtreecommitdiffstats
path: root/tests/auto/qfiledialog
diff options
context:
space:
mode:
authorAlexis Menard <alexis.menard@nokia.com>2010-01-06 13:31:34 (GMT)
committerAlexis Menard <alexis.menard@nokia.com>2010-01-06 13:34:56 (GMT)
commit0de487a10f3a54c46f30042b96c321f982e01a90 (patch)
tree00352de4bdd56ad903a9333164536bc2823cf16e /tests/auto/qfiledialog
parent59a2ed52a780afea84c118054fb7de2440a5d17f (diff)
downloadQt-0de487a10f3a54c46f30042b96c321f982e01a90.zip
Qt-0de487a10f3a54c46f30042b96c321f982e01a90.tar.gz
Qt-0de487a10f3a54c46f30042b96c321f982e01a90.tar.bz2
Fix default filter selection when using HideNameFilterDetails option.
When you have HideNameFilterDetails on, comparing the default filter given in parameter for selectNameFilter has to be done with the striped version of the filter, i.e. without the details. Task-number:QTBUG-4842 Reviewed-by:gabriel Reviewed-by:olivier
Diffstat (limited to 'tests/auto/qfiledialog')
-rw-r--r--tests/auto/qfiledialog/tst_qfiledialog.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/qfiledialog/tst_qfiledialog.cpp b/tests/auto/qfiledialog/tst_qfiledialog.cpp
index 2f9410b..220e1d1 100644
--- a/tests/auto/qfiledialog/tst_qfiledialog.cpp
+++ b/tests/auto/qfiledialog/tst_qfiledialog.cpp
@@ -949,6 +949,7 @@ void tst_QFiledialog::selectFiles()
QLineEdit *lineEdit = qFindChild<QLineEdit*>(dialog, "fileNameEdit");
QVERIFY(lineEdit);
QCOMPARE(lineEdit->text(),QLatin1String("blah"));
+ delete dialog;
}
void tst_QFiledialog::viewMode()