diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2010-12-22 09:47:10 (GMT) |
---|---|---|
committer | Qt Commercial Integration <QtCommercial@digia.com> | 2012-01-31 10:24:43 (GMT) |
commit | 62cfd18376a52b99516451e9dcaee6d123091b89 (patch) | |
tree | 79df1b60a97dfacc0a86873a1b375bc675a19a41 /src/gui/dialogs | |
parent | 0c4638713ef9789770f758dd83a3f100c778cccc (diff) | |
download | Qt-62cfd18376a52b99516451e9dcaee6d123091b89.zip Qt-62cfd18376a52b99516451e9dcaee6d123091b89.tar.gz Qt-62cfd18376a52b99516451e9dcaee6d123091b89.tar.bz2 |
Fixed a double selection in QFileDialog when saving
Task-number: QTBUG-15504
Reviewed-by: Trust-Me
Diffstat (limited to 'src/gui/dialogs')
-rw-r--r-- | src/gui/dialogs/qfiledialog.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/dialogs/qfiledialog.cpp b/src/gui/dialogs/qfiledialog.cpp index 710b593..1372809 100644 --- a/src/gui/dialogs/qfiledialog.cpp +++ b/src/gui/dialogs/qfiledialog.cpp @@ -2996,6 +2996,7 @@ void QFileDialogPrivate::_q_useNameFilter(int index) const int fileNameExtensionLength = fileNameExtension.count(); fileName.replace(fileName.count() - fileNameExtensionLength, fileNameExtensionLength, newNameFilterExtension); + qFileDialogUi->listView->clearSelection(); lineEdit()->setText(fileName); } } |