summaryrefslogtreecommitdiff
path: root/src/organizercore.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2020-07-31 09:56:19 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2020-07-31 09:56:19 -0400
commit777229f28f8f5de19376459e85b434576af8e010 (patch)
tree0f4e5bb10dddce18aa49c9f78c34a98e575b5b6c /src/organizercore.cpp
parent2eeaa0e31a0d74ccd7cada9e478db27263ce4532 (diff)
added startSafeThread() to get core dumps for threads other than the main thread
added terminate handler
Diffstat (limited to 'src/organizercore.cpp')
-rw-r--r--src/organizercore.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/organizercore.cpp b/src/organizercore.cpp
index 062369d6..1e2a0aa1 100644
--- a/src/organizercore.cpp
+++ b/src/organizercore.cpp
@@ -221,7 +221,7 @@ void OrganizerCore::updateExecutablesList()
void OrganizerCore::updateModInfoFromDisc() {
ModInfo::updateFromDisc(
m_Settings.paths().mods(), &m_DirectoryStructure,
- m_PluginContainer, m_Settings.interface().displayForeign(),
+ m_PluginContainer, m_Settings.interface().displayForeign(),
m_Settings.refreshThreadCount(), managedGame());
}
@@ -371,7 +371,7 @@ void OrganizerCore::downloadRequestedNXM(const QString &url)
}
}
-void OrganizerCore::userInterfaceInitialized()
+void OrganizerCore::userInterfaceInitialized()
{
m_UserInterfaceInitialized(m_UserInterface->mainWindow());
}
@@ -1139,7 +1139,7 @@ void OrganizerCore::refreshModList(bool saveChanges)
ModInfo::updateFromDisc(
m_Settings.paths().mods(), &m_DirectoryStructure,
- m_PluginContainer, m_Settings.interface().displayForeign(),
+ m_PluginContainer, m_Settings.interface().displayForeign(),
m_Settings.refreshThreadCount(), managedGame());
m_CurrentProfile->refreshModStatus();
@@ -1473,7 +1473,7 @@ void OrganizerCore::directory_refreshed()
m_StructureDeleter.join();
}
- m_StructureDeleter = std::thread([=]{
+ m_StructureDeleter = MOShared::startSafeThread([=]{
log::debug("structure deleter thread start");
delete newStructure;
log::debug("structure deleter thread done");