Skip to content
Snippets Groups Projects

[feat] Remember paths in Load and Save Lidar State dialogs

Merged Gatien Ferret requested to merge feat/RememberLidarStateLocation into master
2 files
+ 25
4
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -7,6 +7,7 @@
#include <QMessageBox>
#include <pqApplicationCore.h>
#include <pqSettings.h>
#include <vtkSMBooleanDomain.h>
#include <vtkSmartPointer.h>
@@ -59,6 +60,13 @@ void lqLoadLidarStateReaction::LoadLidarState(vtkSMProxy * lidarCurrentProxy)
{
return;
}
// Set LidarState file directory to get back here whenever we load / save it
if (!LidarStateFile.isNull() && !LidarStateFile.isEmpty())
{
pqSettings* settings = pqApplicationCore::instance()->settings();
QFileInfo fileInfo(LidarStateFile);
settings->setValue("LidarPlugin/OpenData/DefaultDirState", fileInfo.absolutePath());
}
// Read and get information of the JSON file
Json::Value contents;
Loading