From bd863186119fc7a4b08e6bc4a687aa23879b9f19 Mon Sep 17 00:00:00 2001 From: Ryan Huffman Date: Mon, 22 Aug 2016 10:36:56 -0700 Subject: [PATCH] Fix address bar being opened when moving between places on same domain --- interface/src/ConnectionMonitor.cpp | 8 -------- interface/src/ConnectionMonitor.h | 1 - 2 files changed, 9 deletions(-) diff --git a/interface/src/ConnectionMonitor.cpp b/interface/src/ConnectionMonitor.cpp index 1956ace67b..ec4e277fbd 100644 --- a/interface/src/ConnectionMonitor.cpp +++ b/interface/src/ConnectionMonitor.cpp @@ -27,10 +27,6 @@ void ConnectionMonitor::init() { connect(&domainHandler, &DomainHandler::disconnectedFromDomain, this, &ConnectionMonitor::disconnectedFromDomain); connect(&domainHandler, &DomainHandler::connectedToDomain, this, &ConnectionMonitor::connectedToDomain); - // Connect to AddressManager::hostChanged - auto addressManager = DependencyManager::get(); - connect(addressManager.data(), &AddressManager::hostChanged, this, &ConnectionMonitor::hostChanged); - _timer.setSingleShot(true); _timer.setInterval(DISPLAY_AFTER_DISCONNECTED_FOR_X_MS); _timer.start(); @@ -46,7 +42,3 @@ void ConnectionMonitor::disconnectedFromDomain() { void ConnectionMonitor::connectedToDomain(const QString& name) { _timer.stop(); } - -void ConnectionMonitor::hostChanged(const QString& name) { - _timer.start(); -} diff --git a/interface/src/ConnectionMonitor.h b/interface/src/ConnectionMonitor.h index bba420715e..ddd80c4af5 100644 --- a/interface/src/ConnectionMonitor.h +++ b/interface/src/ConnectionMonitor.h @@ -25,7 +25,6 @@ public: private slots: void disconnectedFromDomain(); void connectedToDomain(const QString& name); - void hostChanged(const QString& name); private: QTimer _timer;