aboutsummaryrefslogtreecommitdiff
path: root/qml/TerminalList.qml
diff options
context:
space:
mode:
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);
}