summaryrefslogtreecommitdiff
path: root/tests/auto/qfiledialog/tst_qfiledialog.cpp
diff options
context:
space:
mode:
authorAlexis Menard <alexis.menard@nokia.com>2010-01-06 14:31:34 +0100
committerAlexis Menard <alexis.menard@nokia.com>2010-01-06 14:34:56 +0100
commit0de487a10f3a54c46f30042b96c321f982e01a90 (patch)
tree00352de4bdd56ad903a9333164536bc2823cf16e /tests/auto/qfiledialog/tst_qfiledialog.cpp
parent59a2ed52a780afea84c118054fb7de2440a5d17f (diff)
downloadqt4-tools-0de487a10f3a54c46f30042b96c321f982e01a90.tar.gz
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/tst_qfiledialog.cpp')
-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 2f9410bf65..220e1d133b 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()