summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp18
1 files changed, 3 insertions, 15 deletions
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