Apply same limit when checking triggered URL hint

parent b30ce64d
......@@ -3080,7 +3080,7 @@ void TerminalDisplay::keyPressEvent(QKeyEvent* event)
{
if (_enableShowUrlHint && event->modifiers() & Qt::ControlModifier) {
int hintSelected = event->key() - 0x31;
if (hintSelected >= 0 && hintSelected < _filterChain->hotSpots().count()) {
if (hintSelected >= 0 && hintSelected < 10 && hintSelected < _filterChain->hotSpots().count()) {
_filterChain->hotSpots().at(hintSelected)->activate();
_showUrlHint = false;
update();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment