Apply same limit when checking triggered URL hint

wilder-portage
Martin T. H. Sandsmark 10 years ago
parent b30ce64d9a
commit 35ef2e76c5
  1. 2
      src/TerminalDisplay.cpp

@ -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();

Loading…
Cancel
Save