aboutsummaryrefslogtreecommitdiff
path: root/qml/TerminalList.qml
diff options
context:
space:
mode:
authorAdrian Kummerlaender2015-08-09 20:26:40 +0200
committerAdrian Kummerlaender2015-08-09 20:26:40 +0200
commitb911109321dd438ff3a7d389e8c6f17097769286 (patch)
treead700962dc957da1660e7030d64fb730ace39016 /qml/TerminalList.qml
parent22276404e5c3f3833a2de5f1971be24f0729aa6e (diff)
downloadMetaTerm-b911109321dd438ff3a7d389e8c6f17097769286.tar
MetaTerm-b911109321dd438ff3a7d389e8c6f17097769286.tar.gz
MetaTerm-b911109321dd438ff3a7d389e8c6f17097769286.tar.bz2
MetaTerm-b911109321dd438ff3a7d389e8c6f17097769286.tar.lz
MetaTerm-b911109321dd438ff3a7d389e8c6f17097769286.tar.xz
MetaTerm-b911109321dd438ff3a7d389e8c6f17097769286.tar.zst
MetaTerm-b911109321dd438ff3a7d389e8c6f17097769286.zip
Implement `jump` command
Requires type dependent conversion in TerminaList's `selectItem` method as values passed through `eval` are of type `QJSValue` which is not implicitly convertible to Int.
Diffstat (limited to 'qml/TerminalList.qml')
-rw-r--r--qml/TerminalList.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/qml/TerminalList.qml b/qml/TerminalList.qml
index 249193d..fe89be5 100644
--- a/qml/TerminalList.qml
+++ b/qml/TerminalList.qml
@@ -58,7 +58,7 @@ Item {
children[activeItem].deselect();
children[index ].select();
- activeItem = index;
+ activeItem = typeof index === "number" ? index : parseInt(index);
scrollTo(index);
}