Browse Source

crash guard for double clicking links

master
Odilitime 5 years ago
parent
commit
8043cdcafa
  1. 1
      src/graphics/elements/AElement.cpp

1
src/graphics/elements/AElement.cpp

@ -22,6 +22,7 @@ std::unique_ptr<Component> AElement::renderer(const ElementRenderRequest &reques @@ -22,6 +22,7 @@ std::unique_ptr<Component> AElement::renderer(const ElementRenderRequest &reques
// new window
// new tab
// same documentComponent (iframe, document, tab)
browser->getActiveDocumentComponent()->focusedComponent = nullptr;
browser->getActiveDocumentComponent()->navTo(hrefPair->second);
};
}

Loading…
Cancel
Save