diff --git a/Application/Ui/lqOpenPcapReaction.cxx b/Application/Ui/lqOpenPcapReaction.cxx index fa802b4b79e35a02bbb4e3f1b2268ee6cfa95246..6ca4792fe157c37bf7e4a8b05d7b1cb8fc025748 100644 --- a/Application/Ui/lqOpenPcapReaction.cxx +++ b/Application/Ui/lqOpenPcapReaction.cxx @@ -7,6 +7,8 @@ #include #include +#include +#include #include #include #include @@ -169,6 +171,7 @@ void lqOpenPcapReaction::createSourceFromFile(QString fileName) if (posOrSource) { + posOrSource->updatePipeline(); posOrName = posOrSource->getSMName(); controller->Show(posOrSource->getSourceProxy(), 0, view->getViewProxy()); } @@ -191,7 +194,17 @@ void lqOpenPcapReaction::createSourceFromFile(QString fileName) // Show the trailing frame controller->Show(trailingFrameFilter->getSourceProxy(), 0, view->getViewProxy()); pqActiveObjects::instance().setActiveSource(trailingFrameFilter); - + pqApplicationCore::instance()->render(); + + // WIP Workaround Seek to first Frame To prevent displaying half frame from begining + pqAnimationScene* animScene = pqPVApplicationCore::instance()->animationManager()->getActiveScene(); + if(animScene){ + QList timesteps = animScene->getTimeSteps(); + if(!timesteps.empty()){ + animScene->setAnimationTime(timesteps.first()); + } + } + // Remove the handler so the user can interact with VeloView again (pushing any button) handler->RemoveObserver(tag); handler->LocalCleanupPendingProgress();