Skip to content

Commit

Permalink
Merge pull request #1893 from ModOrganizer2/fix/directory-refreshed-q…
Browse files Browse the repository at this point in the history
…timer

Fix QTimer being created on incorrect thread after refresh.
  • Loading branch information
Silarn authored Oct 3, 2023
2 parents 34ad5d8 + 0d5f023 commit b5ba852
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/organizercore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ OrganizerCore::OrganizerCore(Settings& settings)

connect(&m_DownloadManager, SIGNAL(downloadSpeed(QString, int)), this,
SLOT(downloadSpeed(QString, int)));
connect(m_DirectoryRefresher.get(), &DirectoryRefresher::refreshed, [this]() {
onDirectoryRefreshed();
});
connect(m_DirectoryRefresher.get(), &DirectoryRefresher::refreshed, this,
&OrganizerCore::onDirectoryRefreshed);

connect(&m_ModList, SIGNAL(removeOrigin(QString)), this, SLOT(removeOrigin(QString)));
connect(&m_ModList, &ModList::modStatesChanged, [=] {
currentProfile()->writeModlist();
Expand Down

0 comments on commit b5ba852

Please sign in to comment.