Commit 9819d0b8 authored by Renne Thomas's avatar Renne Thomas
Browse files

Correct edit preset file name issue

parent 2f03ad40
......@@ -88,7 +88,7 @@ EditTandemPresetDialog::setTandemParametersFile(
_tandem_params = _p_tandem_preset_file->getTandemParameters();
QSettings settings;
_preset_directory =
settings.value("path/tandemrun_preset_directory", "").toString();
settings.value("path/tandemrun_preset_directory", "~/").toString();
_p_tandem_preset_file->setDirectory(QDir(_preset_directory));
}
}
......@@ -113,7 +113,7 @@ EditTandemPresetDialog::newTandemParameters(
QSettings settings;
_preset_directory =
settings.value("path/tandemrun_preset_directory", "").toString();
settings.value("path/tandemrun_preset_directory", "~/").toString();
_p_tandem_preset_file =
new TandemParametersFile(QString("%1/temp.xml").arg(_preset_directory));
......@@ -218,6 +218,9 @@ EditTandemPresetDialog::doSave()
_p_tandem_preset_file->setTandemParameters(_tandem_params);
fillPresetComboBox();
populate();
QSettings settings;
settings.setValue("path/tandemrun_preset_directory", _preset_directory);
}
catch(pappso::PappsoException &error)
{
......@@ -1569,8 +1572,8 @@ EditTandemPresetDialog::done(int r)
this,
tr("Save parameters"),
tr("Parameters file does not exist.\nDo you want to save a file "
"named %1")
.arg(_p_tandem_preset_file->getMethodName()),
"named %1.xml")
.arg(ui->preset_combo_box->currentText()),
QMessageBox::Cancel,
QMessageBox::Save);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment