Fixing always-on link cursor

This commit is contained in:
Brad Davis 2015-06-26 18:14:31 -07:00
parent 84505c49c4
commit 3b987c1e73

View file

@ -132,6 +132,9 @@ ApplicationCompositor::ApplicationCompositor() {
// check the format of this href string before we parse it
QString hrefString = properties.getHref();
auto cursor = Cursor::Manager::instance().getCursor();
if (!hrefString.isEmpty()) {
if (!hrefString.startsWith("hifi:")) {
hrefString.prepend("hifi://");
}
@ -141,10 +144,6 @@ ApplicationCompositor::ApplicationCompositor() {
_hoverItemTitle = href.host();
_hoverItemDescription = properties.getDescription();
auto cursor = Cursor::Manager::instance().getCursor();
if (!href.isEmpty()) {
cursor->setIcon(Cursor::Icon::LINK);
} else {
cursor->setIcon(Cursor::Icon::DEFAULT);