From 3b987c1e7313aa3b85e605ddf1b9b13ed94fca2a Mon Sep 17 00:00:00 2001 From: Brad Davis Date: Fri, 26 Jun 2015 18:14:31 -0700 Subject: [PATCH] Fixing always-on link cursor --- interface/src/ui/ApplicationCompositor.cpp | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/interface/src/ui/ApplicationCompositor.cpp b/interface/src/ui/ApplicationCompositor.cpp index 98da0bfa2f..339b174791 100644 --- a/interface/src/ui/ApplicationCompositor.cpp +++ b/interface/src/ui/ApplicationCompositor.cpp @@ -132,19 +132,18 @@ ApplicationCompositor::ApplicationCompositor() { // check the format of this href string before we parse it QString hrefString = properties.getHref(); - if (!hrefString.startsWith("hifi:")) { - hrefString.prepend("hifi://"); - } - - // parse out a QUrl from the hrefString - QUrl href = QUrl(hrefString); - - _hoverItemTitle = href.host(); - _hoverItemDescription = properties.getDescription(); auto cursor = Cursor::Manager::instance().getCursor(); + if (!hrefString.isEmpty()) { + if (!hrefString.startsWith("hifi:")) { + hrefString.prepend("hifi://"); + } - if (!href.isEmpty()) { + // parse out a QUrl from the hrefString + QUrl href = QUrl(hrefString); + + _hoverItemTitle = href.host(); + _hoverItemDescription = properties.getDescription(); cursor->setIcon(Cursor::Icon::LINK); } else { cursor->setIcon(Cursor::Icon::DEFAULT);