Skip to content
Snippets Groups Projects

Ui refinement

Merged Arnaud Billon requested to merge ui-refinement into master
14 files
+ 237
129
Compare changes
  • Side-by-side
  • Inline
Files
14
@@ -44,6 +44,8 @@ lqSaveLidarFrameReaction::lqSaveLidarFrameReaction(QAction* action,
pqServerManagerModel* smmodel = core->getServerManagerModel();
this->connect(smmodel, SIGNAL(sourceAdded(pqPipelineSource*)), SLOT(onUpdateUI(pqPipelineSource*)));
this->connect(smmodel, SIGNAL(sourceRemoved(pqPipelineSource*)), SLOT(onUpdateUI(pqPipelineSource*)));
this->onUpdateUI(nullptr);
}
//-----------------------------------------------------------------------------
@@ -100,7 +102,7 @@ void lqSaveLidarFrameReaction::onTriggered()
auto* tsv = vtkSMDoubleVectorProperty::SafeDownCast(lidar->getProxy()->GetProperty("TimestepValues"));
if (tsv)
{
nbFrame = tsv->GetNumberOfElements();
nbFrame = tsv->GetNumberOfElements() ? tsv->GetNumberOfElements()-1 : 0 ;
}
lqSelectLidarFrameDialog dialog(nbFrame);
Loading