From acd201157d85bb2347e891040e46fd1572bedcc3 Mon Sep 17 00:00:00 2001 From: Mikaƫl Capelle Date: Thu, 1 Aug 2024 10:40:44 +0200 Subject: Move slot connections to avoid issue when starting MO2 to download a NXM link. (#2082) * Move slot connections to avoid issue when starting MO2 to download a NXM link. --- src/mainwindow.cpp | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) (limited to 'src/mainwindow.cpp') diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index b14a14a1..f346a3e4 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -407,16 +407,9 @@ MainWindow::MainWindow(Settings& settings, OrganizerCore& organizerCore, SLOT(nexusApi())); connect(NexusInterface::instance().getAccessManager(), - SIGNAL(credentialsReceived(const APIUserAccount&)), this, - SLOT(updateWindowTitle(const APIUserAccount&))); - - connect(NexusInterface::instance().getAccessManager(), - SIGNAL(credentialsReceived(const APIUserAccount&)), - &NexusInterface::instance(), SLOT(setUserAccount(const APIUserAccount&))); - - connect(&NexusInterface::instance(), - SIGNAL(requestsChanged(const APIStats&, const APIUserAccount&)), this, - SLOT(onRequestsChanged(const APIStats&, const APIUserAccount&))); + &NXMAccessManager::credentialsReceived, this, &MainWindow::updateWindowTitle); + connect(&NexusInterface::instance(), &NexusInterface::requestsChanged, ui->statusBar, + &StatusBar::setAPI); connect(&TutorialManager::instance(), SIGNAL(windowTutorialFinished(QString)), this, SLOT(windowTutorialFinished(QString))); @@ -658,11 +651,6 @@ void MainWindow::updateWindowTitle(const APIUserAccount& user) this->setWindowTitle(title); } -void MainWindow::onRequestsChanged(const APIStats& stats, const APIUserAccount& user) -{ - ui->statusBar->setAPI(stats, user); -} - void MainWindow::resizeLists(bool pluginListCustom) { // ensure the columns aren't so small you can't see them any more -- cgit v1.3.1