Fixed double re-detection when the camera is not running and objects were updated
This commit is contained in:
parent
9cc9868820
commit
52387f27b3
@ -1607,7 +1607,10 @@ void MainWindow::notifyParametersChanged(const QStringList & paramChanged)
|
|||||||
this->statusBar()->showMessage(tr("A parameter has changed... \"Update objects\" may be required."));
|
this->statusBar()->showMessage(tr("A parameter has changed... \"Update objects\" may be required."));
|
||||||
}
|
}
|
||||||
|
|
||||||
if(parameterChanged && !camera_->isRunning() && !sceneImage_.empty())
|
if(parameterChanged &&
|
||||||
|
!camera_->isRunning() &&
|
||||||
|
!sceneImage_.empty() &&
|
||||||
|
!(Settings::getGeneral_autoUpdateObjects() && detectorDescriptorParamsChanged)) // already done in updateObjects() above
|
||||||
{
|
{
|
||||||
this->update(sceneImage_);
|
this->update(sceneImage_);
|
||||||
ui_->label_timeRefreshRate->setVisible(false);
|
ui_->label_timeRefreshRate->setVisible(false);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user