summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2010-12-22 09:47:10 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2010-12-22 09:47:10 (GMT)
commit14f89148d8c6b12c8c6bfb4554428b30bb24b4bc (patch)
tree154a0bc202d86764b2e6ba139da9954be93db754
parent8944904f0688f30547b80300627bb5e08abcca40 (diff)
downloadQt-14f89148d8c6b12c8c6bfb4554428b30bb24b4bc.zip
Qt-14f89148d8c6b12c8c6bfb4554428b30bb24b4bc.tar.gz
Qt-14f89148d8c6b12c8c6bfb4554428b30bb24b4bc.tar.bz2
Fixed a double selection in QFileDialog when saving
Task-number: QTBUG-15504 Reviewed-by: Trust-Me
-rw-r--r--src/gui/dialogs/qfiledialog.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/dialogs/qfiledialog.cpp b/src/gui/dialogs/qfiledialog.cpp
index 9509330..9060fae 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);
}
}