From 97ac23d24cac27ff253ce7da421e23666ff500ee Mon Sep 17 00:00:00 2001 From: tst-mswartz <30602702+tst-mswartz@users.noreply.github.com> Date: Wed, 30 Dec 2020 15:02:19 -0500 Subject: [PATCH] Qt4 database push bug fix (#1879) * Commenting out the two connect() lines that cause the segfaults. They don't seem to be required for cleanup, and databases are pushed successfully to the server. Co-authored-by: David Sugar <32524063+tst-dsugar@users.noreply.github.com> --- earth_enterprise/src/fusion/fusionui/AssetManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/earth_enterprise/src/fusion/fusionui/AssetManager.cpp b/earth_enterprise/src/fusion/fusionui/AssetManager.cpp index b306edf322..e833f56908 100644 --- a/earth_enterprise/src/fusion/fusionui/AssetManager.cpp +++ b/earth_enterprise/src/fusion/fusionui/AssetManager.cpp @@ -1271,7 +1271,7 @@ void AssetManager::PushDatabase(const gstAssetHandle& handle) { QObject::connect(&progress_dialog, SIGNAL(canceled()), &push_assistant, SLOT(SetCanceled())); QObject::connect(&push_thread, SIGNAL(sfinished()), &push_assistant, SLOT(Stop())); - QObject::connect(&push_thread, SIGNAL(sfinished()), &push_thread, SLOT(deleteLater())); + // TODO: may still need? QObject::connect(&push_thread, SIGNAL(sfinished()), &push_thread, SLOT(deleteLater())); push_thread.start(); push_assistant.Start(); @@ -1401,7 +1401,7 @@ void AssetManager::PublishDatabase(const gstAssetHandle& handle) { &publish_assistant, SLOT(SetCanceled())); QObject::connect( &publish_thread, SIGNAL(sfinished()), &publish_assistant, SLOT(Stop())); - QObject::connect(&publish_thread, SIGNAL(sfinished()), &publish_thread, SLOT(deleteLater())); + // TODO: May still need? QObject::connect(&publish_thread, SIGNAL(sfinished()), &publish_thread, SLOT(deleteLater())); publish_thread.start(); publish_assistant.Start();