diff options
Diffstat (limited to 'examples/qmlbars')
-rw-r--r-- | examples/qmlbars/qml/qmlbars/main.qml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/examples/qmlbars/qml/qmlbars/main.qml b/examples/qmlbars/qml/qmlbars/main.qml index f2278d83..5b1cc006 100644 --- a/examples/qmlbars/qml/qmlbars/main.qml +++ b/examples/qmlbars/qml/qmlbars/main.qml @@ -72,8 +72,11 @@ Item { var currentColRole = graphData.model.get(i).month if (currentRowRole === rowRole && currentColRole === colRole) { tableView.currentRow = i - tableView.selection.clear() - tableView.selection.select(i) + // Workaround to 5.2 row selection issue + if (typeof tableView.selection != "undefined") { + tableView.selection.clear() + tableView.selection.select(i) + } break } } |