mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 10:15:38 +08:00
Ref T521, removed CWorkerPointer as discussed MS/KB
This commit is contained in:
committed by
Mat Sutcliffe
parent
85cf339e04
commit
9c3ae527aa
@@ -162,7 +162,7 @@ void CSwiftData::consolidationSettingChanged()
|
||||
if (m_updater)
|
||||
{
|
||||
ui->comp_MainInfoArea->getDataSettingsComponent()->setBackgroundUpdater(nullptr);
|
||||
disconnect(m_updater.data());
|
||||
disconnect(m_updater);
|
||||
m_updater->abandonAndWait();
|
||||
m_updater = nullptr;
|
||||
}
|
||||
@@ -171,10 +171,10 @@ void CSwiftData::consolidationSettingChanged()
|
||||
{
|
||||
if (!m_updater)
|
||||
{
|
||||
m_updater = m_updater.create(this);
|
||||
connect(m_updater.data(), &CBackgroundDataUpdater::consolidating, ui->comp_InfoBar, &CInfoBarWebReadersStatusComponent::consolidationRunning, Qt::QueuedConnection);
|
||||
m_updater = new CBackgroundDataUpdater(this);
|
||||
connect(m_updater, &CBackgroundDataUpdater::consolidating, ui->comp_InfoBar, &CInfoBarWebReadersStatusComponent::consolidationRunning, Qt::QueuedConnection);
|
||||
m_updater->start(QThread::LowestPriority);
|
||||
ui->comp_MainInfoArea->getDataSettingsComponent()->setBackgroundUpdater(m_updater.data());
|
||||
ui->comp_MainInfoArea->getDataSettingsComponent()->setBackgroundUpdater(m_updater);
|
||||
}
|
||||
m_updater->startUpdating(consolidationSecs);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user