Skip to content

Commit

Permalink
Move slot connections to avoid issue when starting MO2 to download a …
Browse files Browse the repository at this point in the history
…NXM link.
  • Loading branch information
Holt59 committed Jul 31, 2024
1 parent f11925a commit 57cb241
Show file tree
Hide file tree
Showing 3 changed files with 116 additions and 121 deletions.
8 changes: 0 additions & 8 deletions src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -406,14 +406,6 @@ MainWindow::MainWindow(Settings& settings, OrganizerCore& organizerCore,
connect(&NexusInterface::instance(), SIGNAL(needLogin()), &m_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&)));
Expand Down
7 changes: 5 additions & 2 deletions src/nexusinterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,11 @@ NexusInterface::NexusInterface(Settings* s) : m_PluginContainer(nullptr)

m_DiskCache = new QNetworkDiskCache(this);

connect(m_AccessManager, SIGNAL(requestNXMDownload(QString)), this,
SLOT(downloadRequestedNXM(QString)));
connect(m_AccessManager, &NXMAccessManager::requestNXMDownload, this,
&NexusInterface::downloadRequestedNXM);

connect(m_AccessManager, &NXMAccessManager::credentialsReceived, this,
&NexusInterface::setUserAccount);
}

NexusInterface::~NexusInterface()
Expand Down
Loading

0 comments on commit 57cb241

Please sign in to comment.