Merge pull request #15549 from SimonWalton-HiFi/call-reset-in-NodeList

Call correct NodeList::reset() from Application
This commit is contained in:
Howard Stearns 2019-05-13 19:49:41 -07:00 committed by GitHub
commit 33f1bd965e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1300,8 +1300,8 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo
connect(nodeList.data(), &NodeList::packetVersionMismatch, this, &Application::notifyPacketVersionMismatch);
// you might think we could just do this in NodeList but we only want this connection for Interface
connect(&nodeList->getDomainHandler(), SIGNAL(limitOfSilentDomainCheckInsReached()),
nodeList.data(), SLOT(reset()));
connect(&nodeList->getDomainHandler(), &DomainHandler::limitOfSilentDomainCheckInsReached,
nodeList.data(), [nodeList]() {nodeList->reset("Domain checkin limit"); });
auto dialogsManager = DependencyManager::get<DialogsManager>();
#if defined(Q_OS_ANDROID)