summaryrefslogtreecommitdiffstats
path: root/src/controls/TableView.qml
diff options
context:
space:
mode:
authorJens Bache-Wiig <jens.bache-wiig@digia.com>2013-10-22 12:52:49 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-10-22 15:00:47 +0200
commitfc01a4b20d08020cab6f1264c3b85a985bedc1e8 (patch)
treec91ab24775f4223cfbe9b34a3223cc5f4a183d7b /src/controls/TableView.qml
parent11873dd28fc8ee2c756b79116f58eadf9f81d106 (diff)
Ignore shift modifier in single selection mode
When holding shift in single selection mode, you can incorrectly select multiple rows. This fixes that issue and adds an auto-test. Change-Id: If43846b631e5a3927cf68f69298f71786f664fd0 Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Diffstat (limited to 'src/controls/TableView.qml')
-rw-r--r--src/controls/TableView.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/controls/TableView.qml b/src/controls/TableView.qml
index 39c954bf9..6ade774d0 100644
--- a/src/controls/TableView.qml
+++ b/src/controls/TableView.qml
@@ -695,7 +695,7 @@ ScrollView {
function keySelect(shiftPressed, row) {
if (row < 0 || row === rowCount - 1)
return
- if (shiftPressed) {
+ if (shiftPressed && (selectionMode >= SelectionMode.ExtendedSelection)) {
selection.__ranges = new Array()
selection.select(mousearea.firstKeyRow, row)
} else {