@@ -202,9 +202,9 @@ void Sidebar::loadSettings() {
202202 OctAlgorithmParameters::getInstance ()->useCustomResampleCurve = this ->processingSettings .value (PROC_CUSTOM_RESAMPLING ).toBool (); // todo: move all actions for klin from octproz to sidebar
203203 QString customResamplingFilePath = this ->processingSettings .value (PROC_CUSTOM_RESAMPLING_FILEPATH ).toString ();
204204 if (customResamplingFilePath.isEmpty () || !QFile::exists (customResamplingFilePath)) {
205- emit loadResamplingCurveRequested (SETTINGS_PATH_RESAMPLING_FILE );
205+ emit loadResamplingCurveRequested (SETTINGS_PATH_RESAMPLING_FILE , true );
206206 } else {
207- emit loadResamplingCurveRequested (customResamplingFilePath);
207+ emit loadResamplingCurveRequested (customResamplingFilePath, true );
208208 }
209209 this ->ui .groupBox_dispersionCompensation ->setChecked (this ->processingSettings .value (PROC_DISPERSION_COMPENSATION ).toBool ());
210210 this ->ui .doubleSpinBox_d0 ->setValue (this ->processingSettings .value (PROC_DISPERSION_COMPENSATION_D0 ).toDouble ());
@@ -222,7 +222,7 @@ void Sidebar::loadSettings() {
222222 this ->ui .groupBox_postProcessBackgroundRemoval ->setChecked (this ->processingSettings .value (PROC_POST_BACKGROUND_REMOVAL ).toBool ());
223223 this ->ui .doubleSpinBox_postProcessBackgroundWeight ->setValue (this ->processingSettings .value (PROC_POST_BACKGROUND_WEIGHT ).toDouble ());
224224 this ->ui .doubleSpinBox_postProcessBackgroundOffset ->setValue (this ->processingSettings .value (PROC_POST_BACKGROUND_OFFSET ).toDouble ());
225- emit loadPostProcessBackgroundRequested (SETTINGS_PATH_BACKGROUND_FILE );
225+ emit loadPostProcessBackgroundRequested (SETTINGS_PATH_BACKGROUND_FILE , true );
226226
227227 // GPU to RAM Streaming
228228 this ->ui .groupBox_streaming ->setChecked (this ->streamingSettings .value (STREAM_STREAMING ).toBool ());
@@ -498,7 +498,7 @@ void Sidebar::slot_loadPostProcessingBackground() {
498498 QString savedPath = this ->recordSettings .value (REC_PATH ).toString ();
499499 QString standardLocation = savedPath.size () == 0 ? QStandardPaths::writableLocation (QStandardPaths::DesktopLocation) : savedPath;
500500 fileName = QFileDialog::getOpenFileName (this , tr (" Load background data" ), QDir::currentPath (), filters, &defaultFilter);
501- emit loadPostProcessBackgroundRequested (fileName);
501+ emit loadPostProcessBackgroundRequested (fileName, false );
502502 emit dialogClosed ();
503503}
504504
0 commit comments